Files
Ivan Kylchik c7435ba760 Replace all occurrences of WITH_RUNTIME with WITH_STDLIB
We are going to deprecate `WITH_RUNTIME` directive. The main reason
behind this change is that `WITH_STDLIB` directive better describes
its meaning, specifically it will add kotlin stdlib to test's classpath.
2021-11-17 15:26:38 +03:00

30 lines
411 B
Kotlin
Vendored

// WITH_STDLIB
fun foo() {
for (i in 1..2) { }
val <!UNUSED_VARIABLE!>a<!> = 3..4
val v = 1
if (v in 5..6) { }
}
fun backward() {
for (i in 2 downTo 1) { }
val <!UNUSED_VARIABLE!>a<!> = 4 downTo 3
val v = 1
if (v in -5 downTo -6) { }
}
fun until() {
for (i in 1 until 2) { }
val <!UNUSED_VARIABLE!>a<!> = 3 until 4
val v = 1
if (v in -5 until -4) { }
}