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