blob: d54ab31e0d40022b01bc3b4dcf47f9d2f220bc38 [file]
// RUN_PIPELINE_TILL: FRONTEND
// MODULE: m1
// FILE: A.kt
open class Base(val x: Any)
// MODULE: m2(m1)
// FILE: B.kt
private class Derived : Base("123") {
fun foo() {
if (x is String) {
<!SMARTCAST_IMPOSSIBLE!>x<!>.length
}
}
}
internal class Internal : Base("456")
internal fun bar(i: Internal) {
if (i.x is String) {
<!SMARTCAST_IMPOSSIBLE!>i.x<!>.length
}
}
/* GENERATED_FIR_TAGS: classDeclaration, functionDeclaration, ifExpression, isExpression, primaryConstructor,
propertyDeclaration, smartcast, stringLiteral */