Files
kotlin/compiler/testData/codegen/boxWithStdlib/lazyCodegen/tryCatchExpression.kt
Michael Bogdanov c7b1c0fe52 Store refactoring
#KT-1213 Fixed
2014-11-20 10:20:11 +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"
}