FIR: report SMARTCAST_IMPOSSIBLE on inherited alien properties [KT-48101]

This commit is contained in:
Tianyu Geng
2021-08-12 16:00:25 -07:00
committed by TeamCityServer
parent 0a6e51e47f
commit fb1eac0985
11 changed files with 120 additions and 12 deletions
@@ -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<!>
}