Files
kotlin-fork/compiler/testData/codegen/box/classes/inner/properOuter.kt
T
2019-11-19 11:00:09 +03:00

17 lines
339 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
open class A(val s: String) {
open inner class B(val s: String) {
fun testB() = s + this@A.s
}
open inner class C(): A("C") {
fun testC() =
B("B_").testB()
}
}
fun box(): String {
val res = A("A").C().testC()
return if (res == "B_C") "OK" else res;
}