KT-2457 Verify error when comparing not null value with null in when
backend-side changes
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
fun foo(i: Int, j: Int?): String =
|
||||
when (i) {
|
||||
j -> "OK"
|
||||
else -> "Fail"
|
||||
}
|
||||
|
||||
fun box(): String = foo(0, 0)
|
||||
Reference in New Issue
Block a user