Files
kotlin-fork/compiler/testData/codegen/box/ranges/contains/inPrimitiveProgression.kt
T

10 lines
187 B
Kotlin
Vendored

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