// FIR_IDENTICAL // !LANGUAGE: +ProhibitSmartcastsOnPropertyFromAlienBaseClass // MODULE: m1 // FILE: A.kt open class Base(val x: Any) open class Generic(val y: T) // MODULE: m2(m1) // FILE: B.kt class Derived : Base("123") { fun foo() { if (x is String) { x.length // impossible since `x` is in another module. FE1.0 allows this due to KT-47225 } } } class MyGeneric : Generic(42) { private fun baz(arg: Int) {} fun bar() { if (y is Int) { baz(y) // impossible since `y` is in another module. FE1.0 allows this due to KT-47225 } } }