[FIR] Replace usages of FirExpression.typeRef with coneTypeOrNull
#KT-59855 Fixed
This commit is contained in:
committed by
Space Team
parent
f60d81097c
commit
8d7c5b375e
+9
@@ -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
|
||||
}
|
||||
|
||||
+9
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user