Files
kotlin-fork/compiler/testData/codegen/box/ranges/contains/inPrimitiveProgression.kt
T
2018-06-09 19:15:38 +03:00

10 lines
187 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val progression = 1 .. 3 step 2
fun box(): String = when {
0 in progression -> "fail 1"
1 !in progression -> "fail 2"
else -> "OK"
}