mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
15 lines
271 B
Kotlin
Vendored
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"
|
|
} |