Files
kotlin-fork/compiler/testData/codegen/box/regressions/kt4281.kt
T
2015-10-12 11:11:23 +02:00

17 lines
236 B
Kotlin
Vendored

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"
}