[JS IR IC] Interface default implementations affect IC hash

Adding or removing a method or property with
a default implementation to an interface should
invalidate all children: we must regenerate JS code for them

^KT-56237 Fixed
This commit is contained in:
Alexander Korepanov
2023-04-25 14:53:34 +02:00
committed by Space Team
parent bad5c58952
commit 81b591ed21
45 changed files with 391 additions and 70 deletions
@@ -0,0 +1,7 @@
fun box(stepId: Int): String {
val x = test()
if (x != stepId) {
return "Fail $x != $stepId"
}
return "OK"
}
@@ -0,0 +1,23 @@
STEP 0:
dependencies: lib1
modifications:
U : test.0.kt -> test.kt
added file: m.kt, test.kt
STEP 1:
dependencies: lib1
STEP 2:
dependencies: lib1
updated imports: test.kt
STEP 3:
dependencies: lib1
modifications:
U : test.3.kt -> test.kt
modified ir: test.kt
STEP 4:
dependencies: lib1
updated imports: test.kt
STEP 5:
dependencies: lib1
modifications:
U : test.5.kt -> test.kt
modified ir: test.kt
@@ -0,0 +1,5 @@
fun test(): Int {
val a = ClassA()
val obj = a.leakedObject
return obj.getNumber() + obj.extraNumber
}
@@ -0,0 +1,5 @@
fun test(): Int {
val a = ClassA()
val obj = a.leakedObject
return obj.getNumber() + obj.extraNumber + obj.getOtherNumber()
}
@@ -0,0 +1,5 @@
fun test(): Int {
val a = ClassA()
val obj = a.leakedObject
return obj.getNumber() + obj.extraNumber + obj.getOtherNumber() + obj.otherExtraNumber
}