Support named arguments in their own position

^KT-7745 In Proggress
This commit is contained in:
Denis Zharkov
2019-08-30 12:27:53 +03:00
parent bd6481b9e8
commit e54d2c7c32
18 changed files with 494 additions and 10 deletions
@@ -14150,6 +14150,44 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
public void testNamedArgumentsInOverrides() throws Exception {
runTest("compiler/testData/diagnostics/tests/namedArguments/namedArgumentsInOverrides.kt");
}
@TestMetadata("compiler/testData/diagnostics/tests/namedArguments/mixedNamedPosition")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class MixedNamedPosition extends AbstractDiagnosticsTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInMixedNamedPosition() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/namedArguments/mixedNamedPosition"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true);
}
@TestMetadata("defaults.kt")
public void testDefaults() throws Exception {
runTest("compiler/testData/diagnostics/tests/namedArguments/mixedNamedPosition/defaults.kt");
}
@TestMetadata("disabledFeature.kt")
public void testDisabledFeature() throws Exception {
runTest("compiler/testData/diagnostics/tests/namedArguments/mixedNamedPosition/disabledFeature.kt");
}
@TestMetadata("oldInference.kt")
public void testOldInference() throws Exception {
runTest("compiler/testData/diagnostics/tests/namedArguments/mixedNamedPosition/oldInference.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/diagnostics/tests/namedArguments/mixedNamedPosition/simple.kt");
}
@TestMetadata("varargs.kt")
public void testVarargs() throws Exception {
runTest("compiler/testData/diagnostics/tests/namedArguments/mixedNamedPosition/varargs.kt");
}
}
}
@TestMetadata("compiler/testData/diagnostics/tests/nullabilityAndSmartCasts")