FIR2IR: Fix case of @JvmOverloads with subclass

Avoid generating synthetic overrides in subclass
It has been already working for PSI2IR because fake overrides there don't
inherit default values for parameters, while they do it in FIR
This commit is contained in:
Denis.Zharkov
2021-02-18 19:18:09 +03:00
parent 377a0aa237
commit e4c851e3ce
7 changed files with 46 additions and 6 deletions
@@ -22830,6 +22830,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/jvmOverloads/simpleJavaCall.kt");
}
@Test
@TestMetadata("subClass.kt")
public void testSubClass() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/subClass.kt");
}
@Test
@TestMetadata("typeParameters.kt")
public void testTypeParameters() throws Exception {
@@ -22830,6 +22830,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/jvmOverloads/simpleJavaCall.kt");
}
@Test
@TestMetadata("subClass.kt")
public void testSubClass() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/subClass.kt");
}
@Test
@TestMetadata("typeParameters.kt")
public void testTypeParameters() throws Exception {