Files
kotlin-fork/compiler/testData/ir/irText/expressions/throw.kt
T
2023-03-22 15:18:17 +00:00

13 lines
181 B
Kotlin
Vendored

// IGNORE_BACKEND_K1: JS_IR
// IGNORE_BACKEND_K1: JS_IR_ES6
fun test1() {
throw Throwable()
}
fun testImplicitCast(a: Any) {
if (a is Throwable) {
throw a
}
}