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() {
val a = 1
@@ -17,25 +15,25 @@ fun throwIfLess(a: Int, b: Int) {
throw IllegalStateException()
}
// EXPECTATIONS JVM JVM_IR
// test.kt:3 box
// test.kt:4 box
// test.kt:5 box
// test.kt:6 box
// test.kt:14 throwIfLess
// test.kt:15 throwIfLess
// test.kt:7 box
// test.kt:8 box
// test.kt:16 throwIfLess
// test.kt:17 throwIfLess
// test.kt:9 box
// test.kt:10 box
// test.kt:16 throwIfLess
// test.kt:17 throwIfLess
// test.kt:14 throwIfLess
// test.kt:15 throwIfLess
// EXPECTATIONS JS_IR
// test.kt:5 box
// test.kt:3 box
// test.kt:4 box
// test.kt:6 box
// test.kt:14 throwIfLess
// test.kt:15 throwIfLess
// test.kt:7 box
// test.kt:7 box
// test.kt:8 box
// test.kt:16 throwIfLess
// test.kt:17 throwIfLess
// test.kt:9 box
// test.kt:9 box
// test.kt:10 box
// test.kt:16 throwIfLess
// test.kt:17 throwIfLess
// test.kt:14 throwIfLess
// test.kt:15 throwIfLess
+21 -23
View File
@@ -1,5 +1,3 @@
// IGNORE_BACKEND_K2_LIGHT_TREE: JVM_IR
// Reason: KT-56755
// FILE: test.kt
fun foo(shouldThrow: Boolean) {
@@ -17,28 +15,28 @@ fun box() {
}
// EXPECTATIONS JVM JVM_IR
// test.kt:15 box
// test.kt:6 foo
// test.kt:7 foo
// test.kt:11 foo
// test.kt:12 foo
// test.kt:16 box
// test.kt:6 foo
// test.kt:7 foo
// test.kt:8 foo
// test.kt:13 box
// test.kt:4 foo
// test.kt:5 foo
// test.kt:9 foo
// test.kt:11 foo
// test.kt:12 foo
// test.kt:17 box
// test.kt:10 foo
// test.kt:14 box
// test.kt:4 foo
// test.kt:5 foo
// test.kt:6 foo
// test.kt:7 foo
// test.kt:9 foo
// test.kt:10 foo
// test.kt:15 box
// EXPECTATIONS JS_IR
// test.kt:13 box
// test.kt:5 foo
// test.kt:10 foo
// test.kt:14 box
// test.kt:5 foo
// test.kt:5 foo
// test.kt:6 foo
// test.kt:6 foo
// test.kt:10 foo
// test.kt:15 box
// test.kt:7 foo
// test.kt:12 foo
// test.kt:16 box
// test.kt:7 foo
// test.kt:7 foo
// test.kt:8 foo
// test.kt:8 foo
// test.kt:12 foo
// test.kt:17 box
+82 -84
View File
@@ -1,5 +1,3 @@
// IGNORE_BACKEND_K2_LIGHT_TREE: JVM_IR
// Reason: KT-56755
// FILE: test.kt
fun foo() {
@@ -50,108 +48,108 @@ fun box() {
}
// EXPECTATIONS JVM JVM_IR
// test.kt:41 box
// test.kt:4 foo
// test.kt:5 foo
// test.kt:28 mightThrow
// test.kt:29 mightThrow
// test.kt:5 foo
// test.kt:10 foo
// test.kt:11 foo
// test.kt:32 mightThrow2
// test.kt:33 mightThrow2
// test.kt:11 foo
// test.kt:10 foo
// test.kt:16 foo
// test.kt:17 foo
// test.kt:36 mightThrow3
// test.kt:37 mightThrow3
// test.kt:17 foo
// test.kt:16 foo
// test.kt:21 foo
// test.kt:42 box
// test.kt:43 box
// test.kt:6 foo
// test.kt:7 foo
// test.kt:30 mightThrow
// test.kt:31 mightThrow
// test.kt:7 foo
// test.kt:12 foo
// test.kt:13 foo
// test.kt:34 mightThrow2
// test.kt:35 mightThrow2
// test.kt:13 foo
// test.kt:12 foo
// test.kt:4 foo
// test.kt:5 foo
// test.kt:28 mightThrow
// test.kt:29 mightThrow
// test.kt:5 foo
// test.kt:10 foo
// test.kt:11 foo
// test.kt:32 mightThrow2
// test.kt:33 mightThrow2
// test.kt:11 foo
// test.kt:10 foo
// test.kt:16 foo
// test.kt:17 foo
// test.kt:36 mightThrow3
// test.kt:18 foo
// test.kt:19 foo
// test.kt:38 mightThrow3
// test.kt:39 mightThrow3
// test.kt:19 foo
// test.kt:18 foo
// test.kt:23 foo
// test.kt:44 box
// test.kt:45 box
// test.kt:6 foo
// test.kt:7 foo
// test.kt:30 mightThrow
// test.kt:31 mightThrow
// test.kt:7 foo
// test.kt:4 foo
// test.kt:5 foo
// test.kt:28 mightThrow
// test.kt:29 mightThrow
// test.kt:5 foo
// test.kt:10 foo
// test.kt:11 foo
// test.kt:32 mightThrow2
// test.kt:12 foo
// test.kt:13 foo
// test.kt:34 mightThrow2
// test.kt:35 mightThrow2
// test.kt:13 foo
// test.kt:12 foo
// test.kt:18 foo
// test.kt:19 foo
// test.kt:38 mightThrow3
// test.kt:20 foo
// test.kt:21 foo
// test.kt:46 box
// test.kt:47 box
// test.kt:4 foo
// test.kt:5 foo
// test.kt:28 mightThrow
// test.kt:6 foo
// test.kt:7 foo
// test.kt:30 mightThrow
// test.kt:31 mightThrow
// test.kt:7 foo
// test.kt:12 foo
// test.kt:13 foo
// test.kt:34 mightThrow2
// test.kt:14 foo
// test.kt:15 foo
// test.kt:48 box
// test.kt:49 box
// test.kt:6 foo
// test.kt:7 foo
// test.kt:30 mightThrow
// test.kt:8 foo
// test.kt:9 foo
// test.kt:50 box
// EXPECTATIONS JS_IR
// test.kt:41 box
// test.kt:5 foo
// test.kt:28 mightThrow
// test.kt:29 mightThrow
// test.kt:11 foo
// test.kt:32 mightThrow2
// test.kt:33 mightThrow2
// test.kt:10 foo
// test.kt:17 foo
// test.kt:36 mightThrow3
// test.kt:37 mightThrow3
// test.kt:16 foo
// test.kt:21 foo
// test.kt:42 box
// test.kt:43 box
// test.kt:7 foo
// test.kt:30 mightThrow
// test.kt:31 mightThrow
// test.kt:13 foo
// test.kt:34 mightThrow2
// test.kt:35 mightThrow2
// test.kt:12 foo
// test.kt:19 foo
// test.kt:38 mightThrow3
// test.kt:39 mightThrow3
// test.kt:5 foo
// test.kt:28 mightThrow
// test.kt:29 mightThrow
// test.kt:11 foo
// test.kt:32 mightThrow2
// test.kt:33 mightThrow2
// test.kt:10 foo
// test.kt:17 foo
// test.kt:36 mightThrow3
// test.kt:36 mightThrow3
// test.kt:18 foo
// test.kt:23 foo
// test.kt:19 foo
// test.kt:44 box
// test.kt:45 box
// test.kt:7 foo
// test.kt:30 mightThrow
// test.kt:31 mightThrow
// test.kt:13 foo
// test.kt:34 mightThrow2
// test.kt:35 mightThrow2
// test.kt:5 foo
// test.kt:28 mightThrow
// test.kt:29 mightThrow
// test.kt:11 foo
// test.kt:32 mightThrow2
// test.kt:32 mightThrow2
// test.kt:12 foo
// test.kt:19 foo
// test.kt:38 mightThrow3
// test.kt:38 mightThrow3
// test.kt:20 foo
// test.kt:21 foo
// test.kt:13 foo
// test.kt:46 box
// test.kt:47 box
// test.kt:5 foo
// test.kt:28 mightThrow
// test.kt:28 mightThrow
// test.kt:6 foo
// test.kt:6 foo
// test.kt:7 foo
// test.kt:30 mightThrow
// test.kt:31 mightThrow
// test.kt:13 foo
// test.kt:34 mightThrow2
// test.kt:34 mightThrow2
// test.kt:14 foo
// test.kt:15 foo
// test.kt:48 box
// test.kt:49 box
// test.kt:7 foo
// test.kt:30 mightThrow
// test.kt:30 mightThrow
// test.kt:8 foo
// test.kt:8 foo
// test.kt:9 foo
// test.kt:50 box
+69 -71
View File
@@ -1,5 +1,3 @@
// IGNORE_BACKEND_K2_LIGHT_TREE: JVM_IR
// Reason: KT-56755
// FILE: test.kt
fun foo() {
@@ -40,93 +38,93 @@ fun box() {
}
// EXPECTATIONS JVM JVM_IR
// test.kt:35 box
// test.kt:6 foo
// test.kt:7 foo
// test.kt:27 mightThrow
// test.kt:28 mightThrow
// test.kt:11 foo
// test.kt:33 box
// test.kt:4 foo
// test.kt:5 foo
// test.kt:25 mightThrow
// test.kt:26 mightThrow
// test.kt:9 foo
// test.kt:10 foo
// test.kt:12 foo
// test.kt:13 foo
// test.kt:29 mightThrow2
// test.kt:30 mightThrow2
// test.kt:13 foo
// test.kt:17 foo
// test.kt:18 foo
// test.kt:12 foo
// test.kt:14 foo
// test.kt:15 foo
// test.kt:31 mightThrow2
// test.kt:32 mightThrow2
// test.kt:15 foo
// test.kt:19 foo
// test.kt:20 foo
// test.kt:34 box
// test.kt:35 box
// test.kt:4 foo
// test.kt:5 foo
// test.kt:25 mightThrow
// test.kt:26 mightThrow
// test.kt:9 foo
// test.kt:10 foo
// test.kt:12 foo
// test.kt:13 foo
// test.kt:29 mightThrow2
// test.kt:14 foo
// test.kt:21 foo
// test.kt:15 foo
// test.kt:17 foo
// test.kt:18 foo
// test.kt:12 foo
// test.kt:19 foo
// test.kt:36 box
// test.kt:37 box
// test.kt:4 foo
// test.kt:5 foo
// test.kt:25 mightThrow
// test.kt:6 foo
// test.kt:7 foo
// test.kt:27 mightThrow
// test.kt:28 mightThrow
// test.kt:11 foo
// test.kt:12 foo
// test.kt:14 foo
// test.kt:15 foo
// test.kt:31 mightThrow2
// test.kt:16 foo
// test.kt:17 foo
// test.kt:19 foo
// test.kt:20 foo
// test.kt:14 foo
// test.kt:21 foo
// test.kt:38 box
// test.kt:39 box
// test.kt:6 foo
// test.kt:7 foo
// test.kt:27 mightThrow
// test.kt:8 foo
// test.kt:9 foo
// test.kt:11 foo
// test.kt:10 foo
// test.kt:12 foo
// test.kt:13 foo
// test.kt:29 mightThrow2
// test.kt:14 foo
// test.kt:15 foo
// test.kt:31 mightThrow2
// test.kt:16 foo
// test.kt:17 foo
// test.kt:18 foo
// test.kt:12 foo
// test.kt:19 foo
// test.kt:20 foo
// test.kt:14 foo
// test.kt:21 foo
// test.kt:40 box
// test.kt:38 box
// EXPECTATIONS JS_IR
// test.kt:33 box
// test.kt:5 foo
// test.kt:25 mightThrow
// test.kt:26 mightThrow
// test.kt:13 foo
// test.kt:29 mightThrow2
// test.kt:30 mightThrow2
// test.kt:12 foo
// test.kt:19 foo
// test.kt:34 box
// test.kt:35 box
// test.kt:7 foo
// test.kt:27 mightThrow
// test.kt:28 mightThrow
// test.kt:15 foo
// test.kt:31 mightThrow2
// test.kt:32 mightThrow2
// test.kt:5 foo
// test.kt:25 mightThrow
// test.kt:26 mightThrow
// test.kt:13 foo
// test.kt:29 mightThrow2
// test.kt:29 mightThrow2
// test.kt:14 foo
// test.kt:21 foo
// test.kt:15 foo
// test.kt:12 foo
// test.kt:19 foo
// test.kt:36 box
// test.kt:37 box
// test.kt:7 foo
// test.kt:27 mightThrow
// test.kt:28 mightThrow
// test.kt:15 foo
// test.kt:31 mightThrow2
// test.kt:31 mightThrow2
// test.kt:16 foo
// test.kt:17 foo
// test.kt:5 foo
// test.kt:25 mightThrow
// test.kt:25 mightThrow
// test.kt:6 foo
// test.kt:6 foo
// test.kt:13 foo
// test.kt:29 mightThrow2
// test.kt:29 mightThrow2
// test.kt:14 foo
// test.kt:21 foo
// test.kt:15 foo
// test.kt:12 foo
// test.kt:19 foo
// test.kt:38 box
// test.kt:39 box
// test.kt:7 foo
// test.kt:27 mightThrow
// test.kt:27 mightThrow
// test.kt:8 foo
// test.kt:8 foo
// test.kt:15 foo
// test.kt:31 mightThrow2
// test.kt:31 mightThrow2
// test.kt:16 foo
// test.kt:17 foo
// test.kt:14 foo
// test.kt:21 foo
// test.kt:40 box