Making var arg kParameters default to empty array no argument given

fixes KT-29969
This commit is contained in:
Mathias Quintero
2020-03-14 10:33:41 +01:00
committed by Alexander Udalov
parent b1dbacf45f
commit 34a64d9171
9 changed files with 118 additions and 0 deletions
@@ -19299,6 +19299,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/reflection/callBy/defaultInSuperInterface.kt");
}
@TestMetadata("emptyVarArg.kt")
public void testEmptyVarArg() throws Exception {
runTest("compiler/testData/codegen/box/reflection/callBy/emptyVarArg.kt");
}
@TestMetadata("extensionFunction.kt")
public void testExtensionFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/callBy/extensionFunction.kt");
@@ -19496,6 +19501,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/reflection/createAnnotation/arrayOfKClasses.kt");
}
@TestMetadata("callByWithEmptyVarArg.kt")
public void testCallByWithEmptyVarArg() throws Exception {
runTest("compiler/testData/codegen/box/reflection/createAnnotation/callByWithEmptyVarArg.kt");
}
@TestMetadata("enumKClassAnnotation.kt")
public void testEnumKClassAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/reflection/createAnnotation/enumKClassAnnotation.kt");
@@ -19359,6 +19359,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/reflection/callBy/defaultInSuperInterface.kt");
}
@TestMetadata("emptyVarArg.kt")
public void testEmptyVarArg() throws Exception {
runTest("compiler/testData/codegen/box/reflection/callBy/emptyVarArg.kt");
}
@TestMetadata("extensionFunction.kt")
public void testExtensionFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/callBy/extensionFunction.kt");
@@ -19556,6 +19561,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/reflection/createAnnotation/arrayOfKClasses.kt");
}
@TestMetadata("callByWithEmptyVarArg.kt")
public void testCallByWithEmptyVarArg() throws Exception {
runTest("compiler/testData/codegen/box/reflection/createAnnotation/callByWithEmptyVarArg.kt");
}
@TestMetadata("enumKClassAnnotation.kt")
public void testEnumKClassAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/reflection/createAnnotation/enumKClassAnnotation.kt");