FIR: report SMARTCAST_IMPOSSIBLE on inherited alien properties [KT-48101]
This commit is contained in:
committed by
TeamCityServer
parent
0a6e51e47f
commit
fb1eac0985
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user