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

10 lines
248 B
Kotlin
Vendored

// FIR_IDENTICAL
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// KT-61141: rethrows kotlin.Exception instead of java.lang.Exception
// IGNORE_BACKEND: NATIVE
fun test(f: () -> Unit) =
try { f() } catch (e: Exception) { throw e }