Files
kotlin-fork/compiler/testData/codegen/box/ranges/contains/inCharSequence.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

9 lines
154 B
Kotlin
Vendored

// WITH_RUNTIME
val charSeq: String = "123"
fun box(): String = when {
'0' in charSeq -> "fail 1"
'1' !in charSeq -> "fail 2"
else -> "OK"
}