18 lines
275 B
Kotlin
Vendored
18 lines
275 B
Kotlin
Vendored
class A {
|
|
val foo: B.() -> Unit get() = null!!
|
|
}
|
|
|
|
class B
|
|
|
|
fun test(a: A, b: B) {
|
|
with(b) {
|
|
a.<!NO_VALUE_FOR_PARAMETER!>foo()<!> // here must be error, because a is not extension receiver
|
|
|
|
a.foo(this)
|
|
|
|
(a.foo)()
|
|
|
|
(a.foo)(this)
|
|
}
|
|
}
|