[FIR2IR] Always look for already generated fake overrides before creating them
This change covers the case where some f/o was generated in common module and it is referenced in platform code. But signature of this f/o may be different in different modules because of e.g. actualization of value parameters with actual typealias ^KT-60850 Fixed
This commit is contained in:
committed by
Space Team
parent
380062c511
commit
4e3dbcada3
+24
@@ -13543,6 +13543,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/internalFromFriendModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionInLocal.kt")
|
||||
public void testIntersectionInLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/intersectionInLocal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49371.kt")
|
||||
public void testKt49371() throws Exception {
|
||||
@@ -13573,6 +13579,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/propertySetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("substitutionInLocal.kt")
|
||||
public void testSubstitutionInLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/substitutionInLocal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("varianceOverload.kt")
|
||||
public void testVarianceOverload() throws Exception {
|
||||
@@ -23687,6 +23699,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/intersectionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionOverrideWithDefaultParameterInCommonModule.kt")
|
||||
public void testIntersectionOverrideWithDefaultParameterInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/intersectionOverrideWithDefaultParameterInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt-56329.kt")
|
||||
public void testKt_56329() throws Exception {
|
||||
@@ -23699,6 +23717,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localIntersectionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localIntersectionOverrideWithDefaultParameterInCommonModule.kt")
|
||||
public void testLocalIntersectionOverrideWithDefaultParameterInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localIntersectionOverrideWithDefaultParameterInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localSubstitutionOverrideInCommonModule.kt")
|
||||
public void testLocalSubstitutionOverrideInCommonModule() throws Exception {
|
||||
|
||||
Generated
+24
@@ -13543,6 +13543,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/internalFromFriendModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionInLocal.kt")
|
||||
public void testIntersectionInLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/intersectionInLocal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49371.kt")
|
||||
public void testKt49371() throws Exception {
|
||||
@@ -13573,6 +13579,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/propertySetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("substitutionInLocal.kt")
|
||||
public void testSubstitutionInLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/substitutionInLocal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("varianceOverload.kt")
|
||||
public void testVarianceOverload() throws Exception {
|
||||
@@ -23687,6 +23699,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/intersectionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionOverrideWithDefaultParameterInCommonModule.kt")
|
||||
public void testIntersectionOverrideWithDefaultParameterInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/intersectionOverrideWithDefaultParameterInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt-56329.kt")
|
||||
public void testKt_56329() throws Exception {
|
||||
@@ -23699,6 +23717,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localIntersectionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localIntersectionOverrideWithDefaultParameterInCommonModule.kt")
|
||||
public void testLocalIntersectionOverrideWithDefaultParameterInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localIntersectionOverrideWithDefaultParameterInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localSubstitutionOverrideInCommonModule.kt")
|
||||
public void testLocalSubstitutionOverrideInCommonModule() throws Exception {
|
||||
|
||||
+24
@@ -13543,6 +13543,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/internalFromFriendModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionInLocal.kt")
|
||||
public void testIntersectionInLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/intersectionInLocal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49371.kt")
|
||||
public void testKt49371() throws Exception {
|
||||
@@ -13573,6 +13579,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/propertySetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("substitutionInLocal.kt")
|
||||
public void testSubstitutionInLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/substitutionInLocal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("varianceOverload.kt")
|
||||
public void testVarianceOverload() throws Exception {
|
||||
@@ -23687,6 +23699,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/intersectionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionOverrideWithDefaultParameterInCommonModule.kt")
|
||||
public void testIntersectionOverrideWithDefaultParameterInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/intersectionOverrideWithDefaultParameterInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt-56329.kt")
|
||||
public void testKt_56329() throws Exception {
|
||||
@@ -23699,6 +23717,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localIntersectionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localIntersectionOverrideWithDefaultParameterInCommonModule.kt")
|
||||
public void testLocalIntersectionOverrideWithDefaultParameterInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localIntersectionOverrideWithDefaultParameterInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localSubstitutionOverrideInCommonModule.kt")
|
||||
public void testLocalSubstitutionOverrideInCommonModule() throws Exception {
|
||||
|
||||
+24
@@ -13543,6 +13543,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/internalFromFriendModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionInLocal.kt")
|
||||
public void testIntersectionInLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/intersectionInLocal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49371.kt")
|
||||
public void testKt49371() throws Exception {
|
||||
@@ -13573,6 +13579,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/propertySetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("substitutionInLocal.kt")
|
||||
public void testSubstitutionInLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fakeOverride/substitutionInLocal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("varianceOverload.kt")
|
||||
public void testVarianceOverload() throws Exception {
|
||||
@@ -23687,6 +23699,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/intersectionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionOverrideWithDefaultParameterInCommonModule.kt")
|
||||
public void testIntersectionOverrideWithDefaultParameterInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/intersectionOverrideWithDefaultParameterInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt-56329.kt")
|
||||
public void testKt_56329() throws Exception {
|
||||
@@ -23699,6 +23717,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localIntersectionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localIntersectionOverrideWithDefaultParameterInCommonModule.kt")
|
||||
public void testLocalIntersectionOverrideWithDefaultParameterInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localIntersectionOverrideWithDefaultParameterInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localSubstitutionOverrideInCommonModule.kt")
|
||||
public void testLocalSubstitutionOverrideInCommonModule() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user