JVM IR: fix smart cast on argument of 'throw'

#KT-48163 Fixed
This commit is contained in:
Alexander Udalov
2021-08-09 16:21:33 +02:00
parent cb37a05b79
commit afacff326d
9 changed files with 67 additions and 5 deletions
@@ -0,0 +1,9 @@
// 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