Files
kotlin-fork/compiler/testData/codegen/box/closures/kt3738.kt
T
2020-03-04 16:55:33 +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"
}