K2: reproduce & add test for KT-56511
This commit is contained in:
committed by
Space Team
parent
e75fac271d
commit
0b31e5ad63
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// 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
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// 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) {
|
||||
<!DEBUG_INFO_SMARTCAST!>x<!>.length
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user