Files
kotlin-fork/compiler/testData/codegen/box/closures/kt3738.kt
T
2018-08-09 14:22:50 +03:00

20 lines
236 B
Kotlin
Vendored

class A {
fun foo() {}
fun bar(f: A.() -> Unit = {}) {}
}
class B {
class D {
init {
A().bar {
this.foo()
}
}
}
}
fun box(): String {
B.D()
return "OK"
}