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

13 lines
186 B
Kotlin
Vendored

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