JS: more default arguments fixes (KT-24413, KT-21968 fixed)
MPP-related: * inherited from interfaces * inherited body from interface * default arguments in an interface, implemented by a class delegate * super call of a method with default argument Also: * inheritance from an interface and another interface descendant (KT-21968) * inheritance through an intermediate interface
This commit is contained in:
+30
-15
@@ -6743,11 +6743,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/simpleFromOtherFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallCheck.kt")
|
||||
public void testSuperCallCheck() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/superCallCheck.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/defaultArguments/constructor")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
@@ -6770,11 +6765,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/constructor/annotationWithEmptyArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkIfConstructorIsSynthetic.kt")
|
||||
public void testCheckIfConstructorIsSynthetic() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/constructor/checkIfConstructorIsSynthetic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defArgs1.kt")
|
||||
public void testDefArgs1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/constructor/defArgs1.kt");
|
||||
@@ -6824,11 +6814,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
public void testKt3060() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/constructor/kt3060.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("manyArgs.kt")
|
||||
public void testManyArgs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/constructor/manyArgs.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/defaultArguments/convention")
|
||||
@@ -6876,6 +6861,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/function"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("complexInheritance.kt")
|
||||
public void testComplexInheritance() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/function/complexInheritance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("covariantOverride.kt")
|
||||
public void testCovariantOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/function/covariantOverride.kt");
|
||||
@@ -6926,6 +6916,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/function/funInTrait.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("funInTraitChain.kt")
|
||||
public void testFunInTraitChain() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/function/funInTraitChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerExtentionFunction.kt")
|
||||
public void testInnerExtentionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/function/innerExtentionFunction.kt");
|
||||
@@ -11713,6 +11708,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/constructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedExpectedInterface.kt")
|
||||
public void testDelegatedExpectedInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/delegatedExpectedInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("function.kt")
|
||||
public void testFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/function.kt");
|
||||
@@ -11728,6 +11728,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedFromExpectedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritedFromExpectedInterface.kt")
|
||||
public void testInheritedFromExpectedInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedFromExpectedInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritedFromExpectedMethod.kt")
|
||||
public void testInheritedFromExpectedMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedFromExpectedMethod.kt");
|
||||
@@ -11738,6 +11743,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedInExpectedDeclarations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritedViaAnotherInterfaceIndirectly.kt")
|
||||
public void testInheritedViaAnotherInterfaceIndirectly() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedViaAnotherInterfaceIndirectly.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineFunctionWithDefaultLambda.kt")
|
||||
public void testInlineFunctionWithDefaultLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inlineFunctionWithDefaultLambda.kt");
|
||||
@@ -11747,6 +11757,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
public void testKt23239() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/kt23239.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/superCall.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user