[Common IR] Do not add internal methods to overrides

[JS IR] Use a module name in JsFunctionSignature for internal methods

^KT-60635 Fixed
This commit is contained in:
Alexander Korepanov
2023-08-09 16:35:59 +00:00
committed by Space Team
parent 788fa5d545
commit 7a31167e0b
51 changed files with 1171 additions and 12 deletions
@@ -1576,6 +1576,30 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/bridges/innerClassTypeParameters.kt");
}
@Test
@TestMetadata("internalMethodOverrideInFriendModule.kt")
public void testInternalMethodOverrideInFriendModule() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideInFriendModule.kt");
}
@Test
@TestMetadata("internalMethodOverrideInOtherModule.kt")
public void testInternalMethodOverrideInOtherModule() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideInOtherModule.kt");
}
@Test
@TestMetadata("internalMethodOverrideMultipleInheritance.kt")
public void testInternalMethodOverrideMultipleInheritance() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideMultipleInheritance.kt");
}
@Test
@TestMetadata("internalMethodOverridePublishedApi.kt")
public void testInternalMethodOverridePublishedApi() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverridePublishedApi.kt");
}
@Test
@TestMetadata("kt12416.kt")
public void testKt12416() throws Exception {
@@ -1618,6 +1618,30 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/bridges/innerClassTypeParameters.kt");
}
@Test
@TestMetadata("internalMethodOverrideInFriendModule.kt")
public void testInternalMethodOverrideInFriendModule() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideInFriendModule.kt");
}
@Test
@TestMetadata("internalMethodOverrideInOtherModule.kt")
public void testInternalMethodOverrideInOtherModule() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideInOtherModule.kt");
}
@Test
@TestMetadata("internalMethodOverrideMultipleInheritance.kt")
public void testInternalMethodOverrideMultipleInheritance() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideMultipleInheritance.kt");
}
@Test
@TestMetadata("internalMethodOverridePublishedApi.kt")
public void testInternalMethodOverridePublishedApi() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverridePublishedApi.kt");
}
@Test
@TestMetadata("kt12416.kt")
public void testKt12416() throws Exception {
@@ -1556,6 +1556,30 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/bridges/innerClassTypeParameters.kt");
}
@Test
@TestMetadata("internalMethodOverrideInFriendModule.kt")
public void testInternalMethodOverrideInFriendModule() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideInFriendModule.kt");
}
@Test
@TestMetadata("internalMethodOverrideInOtherModule.kt")
public void testInternalMethodOverrideInOtherModule() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideInOtherModule.kt");
}
@Test
@TestMetadata("internalMethodOverrideMultipleInheritance.kt")
public void testInternalMethodOverrideMultipleInheritance() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideMultipleInheritance.kt");
}
@Test
@TestMetadata("internalMethodOverridePublishedApi.kt")
public void testInternalMethodOverridePublishedApi() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverridePublishedApi.kt");
}
@Test
@TestMetadata("kt12416.kt")
public void testKt12416() throws Exception {
@@ -1577,6 +1577,30 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/bridges/innerClassTypeParameters.kt");
}
@Test
@TestMetadata("internalMethodOverrideInFriendModule.kt")
public void testInternalMethodOverrideInFriendModule() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideInFriendModule.kt");
}
@Test
@TestMetadata("internalMethodOverrideInOtherModule.kt")
public void testInternalMethodOverrideInOtherModule() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideInOtherModule.kt");
}
@Test
@TestMetadata("internalMethodOverrideMultipleInheritance.kt")
public void testInternalMethodOverrideMultipleInheritance() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideMultipleInheritance.kt");
}
@Test
@TestMetadata("internalMethodOverridePublishedApi.kt")
public void testInternalMethodOverridePublishedApi() throws Exception {
runTest("compiler/testData/codegen/box/bridges/internalMethodOverridePublishedApi.kt");
}
@Test
@TestMetadata("kt12416.kt")
public void testKt12416() throws Exception {