[JS IR] Do not copy interface method if base class inherits it
^KT-58599 Fixed
This commit is contained in:
committed by
Space Team
parent
9ca9fc9c68
commit
8066f1b7d2
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
interface A {
|
||||
fun testA1() = 2
|
||||
|
||||
fun testA2() = 3
|
||||
|
||||
val testA3: Int
|
||||
get() = 1
|
||||
}
|
||||
+8
@@ -12,3 +12,11 @@ STEP 1:
|
||||
updated imports: InterfaceB.kt, InterfaceC.kt
|
||||
STEP 2:
|
||||
updated exports: InterfaceB.kt, InterfaceC.kt
|
||||
STEP 3:
|
||||
modifications:
|
||||
U : InterfaceA.3.kt -> InterfaceA.kt
|
||||
modified ir: InterfaceA.kt
|
||||
updated exports: InterfaceA.kt
|
||||
updated imports: InterfaceB.kt, InterfaceC.kt
|
||||
STEP 4:
|
||||
updated exports: InterfaceB.kt, InterfaceC.kt, InterfaceA.kt
|
||||
|
||||
+5
@@ -6,3 +6,8 @@ STEP 1:
|
||||
updated imports: MyClass.kt, GetB.kt, GetC.kt, GetA.kt
|
||||
STEP 2:
|
||||
dependencies: lib1
|
||||
STEP 3:
|
||||
dependencies: lib1
|
||||
updated imports: MyClass.kt, GetB.kt, GetC.kt, GetA.kt
|
||||
STEP 4:
|
||||
dependencies: lib1
|
||||
|
||||
+2
@@ -3,6 +3,8 @@ fun box(stepId: Int): String {
|
||||
0 -> 10
|
||||
1 -> 13
|
||||
2 -> 16
|
||||
3 -> 22
|
||||
4 -> 25
|
||||
else -> return "Unknown"
|
||||
}
|
||||
|
||||
|
||||
+8
@@ -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
|
||||
|
||||
+9
@@ -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
|
||||
}
|
||||
+6
@@ -6,3 +6,9 @@ STEP 0..1:
|
||||
STEP 2:
|
||||
libs: lib1, lib2, main
|
||||
dirty js: lib1, main
|
||||
STEP 3:
|
||||
libs: lib1, lib2, main
|
||||
dirty js: lib1, lib2, main
|
||||
STEP 4:
|
||||
libs: lib1, lib2, main
|
||||
dirty js: lib1, main
|
||||
|
||||
Reference in New Issue
Block a user