mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
TODO some tests should fail because range of comparables (e.g., '"Alpha" .. "Omega"') is currently not implemented
17 lines
256 B
Kotlin
Vendored
17 lines
256 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
// FILE: Ints.kt
|
|
val ints = listOf(1, 2, 3)
|
|
|
|
// FILE: Test.kt
|
|
fun test1(i: Int) =
|
|
if (i in ints) "Yes" else "No"
|
|
|
|
fun test2(i: Int) =
|
|
if (i !in ints) "Yes" else "No"
|
|
|
|
// @TestKt.class:
|
|
// 0 ICONST_0
|
|
// 0 ICONST_1
|
|
// 0 IXOR
|