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

29 lines
573 B
Kotlin
Vendored

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