mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
13 lines
209 B
Kotlin
Vendored
13 lines
209 B
Kotlin
Vendored
class Outer() {
|
|
inner 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"
|
|
}
|