| 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 d348678667c7caf38183e546db76050c28206cef..ae86bfcb37c1a3cd79ec2cd718204b66e9678071 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
|
| @@ -241,6 +241,14 @@ public class ErrorParserTest extends ParserTestCase {
|
| parseCompilationUnit("const class C {}", ParserErrorCode.CONST_CLASS);
|
| }
|
|
|
| + public void test_constFactory() throws Exception {
|
| + parse(
|
| + "parseClassMember",
|
| + new Object[] {"C"},
|
| + "const factory C() {}",
|
| + ParserErrorCode.CONST_FACTORY);
|
| + }
|
| +
|
| public void test_constMethod() throws Exception {
|
| parse("parseClassMember", new Object[] {"C"}, "const int m() {}", ParserErrorCode.CONST_METHOD);
|
| }
|
|
|