20 lines
236 B
Kotlin
Vendored
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"
|
|
}
|