Always null detection
This commit is contained in:
+1
-1
@@ -5,6 +5,6 @@ fun foo() {
|
||||
val x: Int? = null
|
||||
|
||||
bar(1 + (if (x == null) 0 else x))
|
||||
bar(if (x == null) <!TYPE_MISMATCH!>x<!> else x)
|
||||
bar(if (x == null) <!ALWAYS_NULL, TYPE_MISMATCH!>x<!> else x)
|
||||
if (x != null) bar(x + x/(x-x*x))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user