Revert "FIR2IR: minimize scope processing in fake override generation"
This reverts commit 9934cfbb00.
See the tests added: Subclass may have private same-name method that
should not be a reason to avoid generating fake overrides
This commit is contained in:
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+5
@@ -26881,6 +26881,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/traits/receiverOfIntersectionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sameNameMethodFromInterface.kt")
|
||||
public void testSameNameMethodFromInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/sameNameMethodFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("syntheticAccessor.kt")
|
||||
public void testSyntheticAccessor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/syntheticAccessor.kt");
|
||||
|
||||
Generated
+5
@@ -26302,6 +26302,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/traits/receiverOfIntersectionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sameNameMethodFromInterface.kt")
|
||||
public void testSameNameMethodFromInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/sameNameMethodFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("syntheticAccessor.kt")
|
||||
public void testSyntheticAccessor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/syntheticAccessor.kt");
|
||||
|
||||
Generated
+5
@@ -26262,6 +26262,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/traits/receiverOfIntersectionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sameNameMethodFromInterface.kt")
|
||||
public void testSameNameMethodFromInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/sameNameMethodFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("syntheticAccessor.kt")
|
||||
public void testSyntheticAccessor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/syntheticAccessor.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+5
@@ -14661,6 +14661,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/traits/receiverOfIntersectionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sameNameMethodFromInterface.kt")
|
||||
public void testSameNameMethodFromInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/sameNameMethodFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("syntheticAccessor.kt")
|
||||
public void testSyntheticAccessor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/syntheticAccessor.kt");
|
||||
|
||||
Reference in New Issue
Block a user