Distinguish between no declared arguments and an empty argument list

in a function literal
If there are no arguments, any number of them might be expected
This commit is contained in:
Svetlana Isakova
2015-05-25 14:24:35 +03:00
committed by Alexander Udalov
parent d9568ef88c
commit 14c2690447
6 changed files with 32 additions and 8 deletions
@@ -9012,6 +9012,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("EmptyArgumentListInLambda.kt")
public void testEmptyArgumentListInLambda() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/overload/EmptyArgumentListInLambda.kt");
doTest(fileName);
}
@TestMetadata("ExtFunDifferentReceiver.kt")
public void testExtFunDifferentReceiver() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/overload/ExtFunDifferentReceiver.kt");