Files
kotlin-fork/compiler/testData/codegen/box/lazyCodegen/tryCatchExpression.kt
T
2021-09-08 19:56:38 +03:00

14 lines
189 B
Kotlin
Vendored

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