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

13 lines
188 B
Kotlin

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