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

18 lines
266 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
abstract class C {
fun test(x: Int) {
if (x == 0) return
if (this is D) {
val d: D = this
d.test(x - 1)
}
}
}
class D: C()
fun box(): String {
D().test(10)
return "OK"
}