Files
Alexander Udalov afacff326d JVM IR: fix smart cast on argument of 'throw'
#KT-48163 Fixed
2021-08-09 22:34:44 +02:00

10 lines
211 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
fun f(x: Throwable) { throw x }
fun f(x: Exception) { throw x }
fun f(x: RuntimeException) { throw x }
fun f(x: Error) { throw x }
fun f(x: AssertionError) { throw x }
// 0 CHECKCAST