| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
|
| index 65dc6094a9cbff42fcb01c39c25e9b8b5c327a51..68fa6dba9f1eafb0b35d8631d537e0d013bd3547 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
|
| @@ -1000,6 +1000,14 @@ public class ErrorParserTest extends ParserTestCase {
|
| ParserErrorCode.NON_USER_DEFINABLE_OPERATOR);
|
| }
|
|
|
| + public void test_optionalAfterNormalParameters_named() throws Exception {
|
| + parseCompilationUnit("f({a}, b) {}", ParserErrorCode.NORMAL_BEFORE_OPTIONAL_PARAMETERS);
|
| + }
|
| +
|
| + public void test_optionalAfterNormalParameters_positional() throws Exception {
|
| + parseCompilationUnit("f([a], b) {}", ParserErrorCode.NORMAL_BEFORE_OPTIONAL_PARAMETERS);
|
| + }
|
| +
|
| public void test_positionalAfterNamedArgument() throws Exception {
|
| parse("parseArgumentList", "(x: 1, 2)", ParserErrorCode.POSITIONAL_AFTER_NAMED_ARGUMENT);
|
| }
|
|
|