FIR: report SMARTCAST_IMPOSSIBLE on inherited alien properties [KT-48101]
This commit is contained in:
committed by
TeamCityServer
parent
0a6e51e47f
commit
fb1eac0985
@@ -9,7 +9,7 @@
|
||||
fun case_1(x: Pair<*, *>) {
|
||||
if (x.first !is String) return
|
||||
x.first
|
||||
x.first.length
|
||||
<!SMARTCAST_IMPOSSIBLE!>x.first<!>.length
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -19,5 +19,5 @@ fun case_1(x: Pair<*, *>) {
|
||||
fun case_2(x: Pair<*, *>) {
|
||||
if (x.first !is String?) throw Exception()
|
||||
x.first
|
||||
x.first?.length
|
||||
x.first?.<!UNRESOLVED_REFERENCE!>length<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user