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
@@ -1,9 +0,0 @@
fun foo1(p: Pair<Int?, Int>): Int {
if (p.first != null) return p.first<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>
return p.second
}
fun foo2(p: Pair<Int?, Int>): Int {
if (p.first != null) return p.first
return p.second
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
fun foo1(p: Pair<Int?, Int>): Int {
if (p.first != null) return p.first!!
return p.second