[JS IR] Do not copy interface method if base class inherits it

^KT-58599 Fixed
This commit is contained in:
Alexander Korepanov
2023-05-30 08:22:43 +00:00
committed by Space Team
parent 9ca9fc9c68
commit 8066f1b7d2
54 changed files with 886 additions and 8 deletions
@@ -3,6 +3,8 @@ fun box(stepId: Int): String {
0 -> 10
1 -> 13
2 -> 16
3 -> 22
4 -> 25
else -> return "Unknown"
}
@@ -11,3 +11,11 @@ STEP 2:
modifications:
U : test.2.kt -> test.kt
modified ir: test.kt
STEP 3:
dependencies: lib1, lib2
updated imports: test.kt
STEP 4:
dependencies: lib1, lib2
modifications:
U : test.4.kt -> test.kt
modified ir: test.kt
@@ -0,0 +1,9 @@
fun test(): Int {
val a = getObjectA()
val b = getObjectB()
val c = getObjectC()
return a.testA1() + a.testA2() + a.testA3 +
b.testA1() + b.testA2() + b.testB1() + b.testA3 +
c.testA1() + c.testA2() + c.testB1() + c.testC1() + c.testA3
}