Files
kotlin-fork/backend.native/tests/external/codegen/box/controlStructures/kt9022Throw.kt
T
2017-03-13 15:31:46 +03:00

13 lines
283 B
Kotlin

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
fun box(): String {
var cycle = true;
while (true) {
if (true || throw java.lang.RuntimeException()) {
return "OK"
}
}
return "fail"
}