de50f8aef3
Here we introduce ONLY_IMPLICIT_RECEIVER tower level to support extension lambda calls on local variables, and soften extension receiver checks to make such extensions visible & applicable. Also here we try to map arguments twice for functional types
18 lines
246 B
Kotlin
Vendored
18 lines
246 B
Kotlin
Vendored
// KT-3731 Resolve & inner class
|
|
|
|
class A {
|
|
fun foo() {}
|
|
fun bar(f: A.() -> Unit = {}) = f()
|
|
}
|
|
|
|
class B {
|
|
class D {
|
|
init {
|
|
A().bar {
|
|
this.foo()
|
|
foo()
|
|
}
|
|
}
|
|
}
|
|
}
|