KT-2223 Comparing non-null value with null might produce helpful warning
#KT-2223 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
//KT-2223 Comparing non-null value with null might produce helpful warning
|
||||
package kt2223
|
||||
|
||||
fun foo() {
|
||||
val x: Int? = null
|
||||
if (x == null) return
|
||||
if (<!SENSELESS_COMPARISON!>x == null<!>) return
|
||||
}
|
||||
Reference in New Issue
Block a user