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,9 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val range = 1 .. 3
|
||||
|
||||
fun box(): String = when {
|
||||
0 in range -> "fail 1"
|
||||
1 !in range -> "fail 2"
|
||||
else -> "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user