Files
kotlin-fork/compiler/testData/codegen/box/ranges/contains/inArray.kt
T
Dmitry Petrov a7071ae7af Provide intrinsic generators for in/!in expression
TODO some tests should fail because range of comparables
(e.g., '"Alpha" .. "Omega"') is currently not implemented
2017-07-10 10:51:26 +03:00

7 lines
145 B
Kotlin
Vendored

// WITH_RUNTIME
fun box(): String = when {
0 in intArrayOf(1, 2, 3) -> "fail 1"
1 !in intArrayOf(1, 2, 3) -> "fail 2"
else -> "OK"
}