Initialize 'source' property of FirCatch objects properly

^KT-56923: Fixed
^KT-56755: Fixed
This commit is contained in:
vladislav.grechko
2023-03-01 20:15:41 +01:00
committed by teamcity
parent 83845fbab5
commit 17e6099b53
16 changed files with 357 additions and 345 deletions
+14 -16
View File
@@ -1,5 +1,3 @@
// IGNORE_BACKEND_K2_LIGHT_TREE: JVM_IR
// Reason: KT-56755
// FILE: test.kt
fun box() {
try {
@@ -13,20 +11,20 @@ fun box() {
}
// EXPECTATIONS JVM JVM_IR
// test.kt:5 box:
// test.kt:6 box:
// test.kt:7 box: a:int=1:int
// test.kt:8 box: a:int=0:int
// test.kt:10 box:
// test.kt:11 box: e:java.lang.Throwable=java.lang.ArithmeticException
// test.kt:13 box:
// test.kt:3 box:
// test.kt:4 box:
// test.kt:5 box: a:int=1:int
// test.kt:6 box: a:int=0:int
// test.kt:8 box:
// test.kt:9 box: e:java.lang.Throwable=java.lang.ArithmeticException
// test.kt:11 box:
// EXPECTATIONS JS_IR
// test.kt:6 box:
// test.kt:7 box: a=1:number
// test.kt:7 box: a=1:number
// test.kt:4 box:
// test.kt:5 box: a=1:number
// test.kt:5 box: a=1:number
// test.kt:6 box: a=0:number
// test.kt:7 box: a=0:number
// test.kt:8 box: a=0:number
// test.kt:9 box: a=0:number
// test.kt:10 box: a=0:number
// test.kt:10 box: a=0:number
// test.kt:11 box: a=0:number, e=kotlin.ArithmeticException
// test.kt:8 box: a=0:number
// test.kt:9 box: a=0:number, e=kotlin.ArithmeticException