blob: fc263ecb7bd02fec251d47f33fea3919697320ec [file]
// RUN_PIPELINE_TILL: BACKEND
// 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"
}
/* GENERATED_FIR_TAGS: classDeclaration, functionDeclaration, ifExpression, isExpression, override, smartcast,
stringLiteral, thisExpression */