3aa6c9e74d
^KT-58240
10 lines
248 B
Kotlin
Vendored
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 }
|