Files
kotlin-fork/compiler/testData/codegen/box/lazyCodegen/tryCatchExpression.kt
T
2018-06-09 19:15:38 +03:00

14 lines
213 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
class A {
val p : Int = try{
1
} catch(e: Exception) {
throw RuntimeException()
}
}
fun box() : String {
if (A().p != 1) return "fail 1"
return "OK"
}