10 lines
164 B
Kotlin
Vendored
10 lines
164 B
Kotlin
Vendored
open class C(val f: () -> String)
|
|
|
|
class B(val x: String) {
|
|
fun foo(): C {
|
|
class A : C({x}) {}
|
|
return A()
|
|
}
|
|
}
|
|
|
|
fun box() = B("OK").foo().f() |