[JS IR] Add tests for JS IR IC + PL
^KT-57347 related
This commit is contained in:
committed by
Space Team
parent
97620030c6
commit
82a1242f22
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
class Klass: Bar() {
|
||||
}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
class Klass: Bar {
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
class Klass: Bar() {
|
||||
override fun getSomething() = super.getSomething()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fun box(stepId: Int): String {
|
||||
val x = test()
|
||||
if (stepId != x) return "Fail; got $x"
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
STEP 0:
|
||||
dependencies: lib1, lib2
|
||||
modifications:
|
||||
U : klass.0.kt -> klass.kt
|
||||
U : test.0.kt -> test.kt
|
||||
added file: m.kt, test.kt, klass.kt
|
||||
STEP 1..2:
|
||||
dependencies: lib1, lib2
|
||||
rebuild klib: false
|
||||
updated imports: test.kt, klass.kt
|
||||
STEP 3:
|
||||
dependencies: lib1, lib2
|
||||
rebuild klib: false
|
||||
STEP 4:
|
||||
dependencies: lib1, lib2
|
||||
modifications:
|
||||
U : klass.4.kt -> klass.kt
|
||||
U : test.4.kt -> test.kt
|
||||
modified ir: klass.kt, test.kt
|
||||
STEP 5:
|
||||
dependencies: lib1, lib2
|
||||
rebuild klib: false
|
||||
updated exports: klass.kt
|
||||
updated imports: test.kt, klass.kt
|
||||
STEP 6:
|
||||
dependencies: lib1, lib2
|
||||
modifications:
|
||||
U : klass.6.kt -> klass.kt
|
||||
modified ir: klass.kt
|
||||
updated exports: klass.kt
|
||||
updated imports: test.kt
|
||||
STEP 7:
|
||||
dependencies: lib1, lib2
|
||||
rebuild klib: false
|
||||
updated imports: klass.kt
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
fun test(): Int {
|
||||
try {
|
||||
return Klass().getSomething()
|
||||
} catch (e: Error) {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
fun test(): Int {
|
||||
try {
|
||||
return Klass().getSomething()
|
||||
} catch (e: Error) {
|
||||
return 5
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user