mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
13 lines
203 B
Plaintext
13 lines
203 B
Plaintext
class Outer() {
|
|
class Inner() {
|
|
val outer: Outer get() = this@Outer
|
|
}
|
|
|
|
public val x : Inner = Inner()
|
|
}
|
|
|
|
fun box() : String {
|
|
val o = Outer()
|
|
return if (o === o.x.outer) "OK" else "fail"
|
|
}
|