Files
kotlin/compiler/testData/codegen/box/classes/outerThis.kt
2019-11-19 11:00:09 +03:00

14 lines
239 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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"
}