Generate correct varargs flag for @JvmOverloads-generated methods

#KT-14186 Fixed
This commit is contained in:
Dmitry Jemerov
2016-11-17 11:21:49 +01:00
parent 16a133bf5c
commit d3ccbe8172
6 changed files with 42 additions and 2 deletions
@@ -10468,6 +10468,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("varargs.kt")
public void testVarargs() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/jvmOverloads/varargs.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
}
@TestMetadata("compiler/testData/codegen/box/jvmStatic")