11 lines
179 B
Kotlin
Vendored
11 lines
179 B
Kotlin
Vendored
open class Foo(val x: () -> String)
|
|
open class Foo2(val foo: Foo)
|
|
|
|
class Outer {
|
|
val s = "OK"
|
|
|
|
inner class Inner : Foo2(Foo({ s }))
|
|
}
|
|
|
|
fun box() = Outer().Inner().foo.x()
|