12 lines
204 B
Kotlin
Vendored
12 lines
204 B
Kotlin
Vendored
class Outer(val value: String) {
|
|
|
|
inner class Inner {
|
|
fun Outer.foo() = value
|
|
}
|
|
}
|
|
|
|
fun Outer.Inner.test() = Outer("OK").foo()
|
|
|
|
fun box(): String {
|
|
return Outer("Fail").Inner().test()
|
|
} |