Files
kotlin-fork/compiler/testData/codegen/box/ranges/kt47492b.kt
T
2021-10-02 06:14:35 +00:00

18 lines
263 B
Kotlin
Vendored

// WITH_RUNTIME
fun a() = 5
fun b() = 1
fun p() {}
fun box(): String {
try {
val h1 = 1
val h2 = 2L
val h3 = 3L
} catch (e: Exception) { throw e }
var sum = 1
for (i: Int? in a() downTo b())
p()
return "OK"
}