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.
15 lines
192 B
Kotlin
Vendored
15 lines
192 B
Kotlin
Vendored
|
|
open class A {
|
|
open fun foo() = "FAIL"
|
|
|
|
fun bar() = if (this is C) foo() else foo()
|
|
}
|
|
|
|
open class B : A()
|
|
|
|
open class C : B() {
|
|
override fun foo() = "OK"
|
|
}
|
|
|
|
fun box() = C().bar()
|