Provide intrinsic generators for in/!in expression
TODO some tests should fail because range of comparables (e.g., '"Alpha" .. "Omega"') is currently not implemented
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun box(): String = when {
|
||||
0 in intArrayOf(1, 2, 3) -> "fail 1"
|
||||
1 !in intArrayOf(1, 2, 3) -> "fail 2"
|
||||
else -> "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user