522eeae062
To convert smart cast expression, now we just convert original expression in standard way and wrap it with TYPE_OP. Before this commit original expression was converted in different way, that led to errors e.g. for this expression casting.
17 lines
236 B
Kotlin
Vendored
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"
|
|
}
|