JVM_IR KT-46839 lower varargs for *arrayOf function references

This commit is contained in:
Dmitry Petrov
2021-05-21 15:44:46 +03:00
committed by teamcityserver
parent 6ca7b39f6a
commit ba00709e4d
14 changed files with 214 additions and 32 deletions
@@ -1460,6 +1460,16 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/callableReference/arrayConstructorArgument.kt");
}
@TestMetadata("arrayOf.kt")
public void testArrayOf() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/arrayOf.kt");
}
@TestMetadata("charArrayOf.kt")
public void testCharArrayOf() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/charArrayOf.kt");
}
@TestMetadata("genericConstructorReference.kt")
public void testGenericConstructorReference() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/genericConstructorReference.kt");
@@ -1460,6 +1460,16 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/callableReference/arrayConstructorArgument.kt");
}
@TestMetadata("arrayOf.kt")
public void testArrayOf() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/arrayOf.kt");
}
@TestMetadata("charArrayOf.kt")
public void testCharArrayOf() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/charArrayOf.kt");
}
@TestMetadata("genericConstructorReference.kt")
public void testGenericConstructorReference() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/genericConstructorReference.kt");
@@ -1460,6 +1460,16 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/callableReference/arrayConstructorArgument.kt");
}
@TestMetadata("arrayOf.kt")
public void testArrayOf() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/arrayOf.kt");
}
@TestMetadata("charArrayOf.kt")
public void testCharArrayOf() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/charArrayOf.kt");
}
@TestMetadata("genericConstructorReference.kt")
public void testGenericConstructorReference() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/genericConstructorReference.kt");
@@ -1265,6 +1265,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("arrayOf.kt")
public void testArrayOf() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/arrayOf.kt");
}
@TestMetadata("charArrayOf.kt")
public void testCharArrayOf() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/charArrayOf.kt");
}
@TestMetadata("inlineArrayConstructors.kt")
public void testInlineArrayConstructors() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/inlineArrayConstructors.kt");