Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/implicitToGrandSon.fir.kt
T

12 lines
169 B
Kotlin
Vendored

open class A {
open fun foo() = "FAIL"
fun bar() = if (this is C) foo() else "FAIL"
}
open class B : A()
open class C : B() {
override fun foo() = "OK"
}