A test that fails in lazy mode (currently disabled)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
trait JPAEntityClass<D> {
|
||||
fun <T> T.findByName(s: String): D {null!!}
|
||||
}
|
||||
|
||||
class Foo {
|
||||
class object : JPAEntityClass<Foo>
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
<!TYPE_INFERENCE_TYPE_CONSTRUCTOR_MISMATCH!>with<!>("", {
|
||||
Foo.<!MISSING_RECEIVER, TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>findByName<!>("")
|
||||
})
|
||||
}
|
||||
|
||||
fun <T> with(t: T, f: T.() -> Unit) {}
|
||||
Reference in New Issue
Block a user