[FIR] Replace usages of FirExpression.typeRef with coneTypeOrNull

#KT-59855 Fixed
This commit is contained in:
Kirill Rakhman
2023-08-04 10:43:25 +02:00
committed by Space Team
parent f60d81097c
commit 8d7c5b375e
76 changed files with 538 additions and 565 deletions
@@ -75,3 +75,12 @@ fun test5() {
c.x<!UNSAFE_CALL!>.<!>length // bad
d.x.length // ok
}
fun test6() {
var c: C? = null
var maybeC: C? = C("")
if (c == null) {
c = maybeC ?: throw Exception()
}
c.x
}
@@ -75,3 +75,12 @@ fun test5() {
c.x<!UNSAFE_CALL!>.<!>length // bad
<!DEBUG_INFO_SMARTCAST!>d.x<!>.length // ok
}
fun test6() {
var c: C? = null
var maybeC: C? = C("")
if (c == null) {
c = maybeC ?: throw Exception()
}
<!DEBUG_INFO_SMARTCAST!>c<!>.x
}