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:
Dmitry Petrov
2017-06-29 18:09:38 +03:00
parent e3320c53f5
commit a7071ae7af
24 changed files with 744 additions and 29 deletions
@@ -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"
}