Files
kotlin/compiler/testData/codegen/box/lazyCodegen/tryCatchExpression.kt
2020-11-09 16:04:43 +03:00

15 lines
271 B
Kotlin
Vendored

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