Suspend lambdas can't have value parameters (UNSUPPORTED in M04).

This commit is contained in:
Dmitry Petrov
2016-12-15 16:36:49 +03:00
committed by Stanislav Erokhin
parent c5aeaae8e6
commit f19581dc4d
12 changed files with 30 additions and 11 deletions
@@ -4518,6 +4518,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("noValueParameters.kt")
public void testNoValueParameters() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/coroutines/suspendFunctionType/noValueParameters.kt");
doTest(fileName);
}
@TestMetadata("suspendFunctionNIsUnresolved.kt")
public void testSuspendFunctionNIsUnresolved() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/coroutines/suspendFunctionType/suspendFunctionNIsUnresolved.kt");