Limit "always null" scope: only for !!, is and dot; senseless comparison rolled back; "smart constant" information for nulls #KT-10029 Fixed
This commit is contained in:
Vendored
+2
-2
@@ -1,8 +1,8 @@
|
||||
fun test() {
|
||||
val out : Int? = null
|
||||
val x : Nothing? = null
|
||||
if (out != <!ALWAYS_NULL!>x<!>)
|
||||
if (out != <!DEBUG_INFO_CONSTANT!>x<!>)
|
||||
<!DEBUG_INFO_SMARTCAST!>out<!>.plus(1)
|
||||
if (out == <!ALWAYS_NULL!>x<!>) return
|
||||
if (out == <!DEBUG_INFO_CONSTANT!>x<!>) return
|
||||
<!DEBUG_INFO_SMARTCAST!>out<!>.plus(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user