Files
kotlin-fork/backend.native/tests/external/codegen/box/closures/kt3738.kt
T
2017-03-13 15:31:46 +03:00

20 lines
236 B
Kotlin

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"
}