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:
Denis.Zharkov
2021-03-31 11:55:51 +03:00
parent 55e5af1111
commit fa65081878
10 changed files with 53 additions and 13 deletions
@@ -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");
@@ -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");
@@ -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");
@@ -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");