Add a test for KT-54318
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
fun f(b: Int): Long? {
|
||||
return try {
|
||||
null
|
||||
} catch (e: Throwable) {
|
||||
if (b == 0)
|
||||
throw e
|
||||
else {
|
||||
null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
f(0)
|
||||
f(1)
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user