blob: 388ab7ae6ba92d85d0a02e82867cf4c0ed57ffeb [file]
// RUN_PIPELINE_TILL: CODEGEN
// ISSUE: KT-51827
abstract class A {
abstract protected val a: Any?
open class Nested(override val a: String) : A() {
class B {
fun f(other: A) {
other.a
if (other is Nested) {
other.a.length
}
if (other is C) {
other.a
}
}
}
}
class C(override val a: String): Nested(a)
}
/* GENERATED_FIR_TAGS: classDeclaration, functionDeclaration, ifExpression, isExpression, nestedClass, nullableType,
override, primaryConstructor, propertyDeclaration, smartcast */