Files
kotlin-fork/compiler/testData/ir/irText/expressions/kt48806.kt
T
Vladimir Sukharev 3aa6c9e74d [K/N] Run irText tests for K1/Native
^KT-58240
2023-09-05 11:42:45 +00:00

23 lines
484 B
Kotlin
Vendored

// FIR_IDENTICAL
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// ISSUE: KT-48806
// KT-61141: throws kotlin.RuntimeException instead of java.lang.RuntimeException, and catches kotlin.Exception instead of java.lang.Exception
// IGNORE_BACKEND: NATIVE
class A {
val test_1: Int = try{
throw RuntimeException()
} catch(e: Exception) {
1
}
val test_2: Int = try{
1
} catch(e: Exception) {
throw RuntimeException()
}
}