Files
kotlin/compiler/testData/codegen/box/lazyCodegen/tryCatchExpression.kt
2018-06-19 17:09:31 +03:00

13 lines
188 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"
}