| Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| index 1252b1b69b9c7ddfd3b36e809b3b25d4316ea4f9..43cf7b6fed25caa4ee5a0706e1396068be63b562 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| @@ -2276,6 +2276,9 @@ public class Parser {
|
| separator = getAndAdvance();
|
| redirectedConstructor = parseConstructorName();
|
| body = new EmptyFunctionBody(expect(TokenType.SEMICOLON));
|
| + if (factoryKeyword == null) {
|
| + reportError(ParserErrorCode.REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR, redirectedConstructor);
|
| + }
|
| } else {
|
| body = parseFunctionBody(true, ParserErrorCode.MISSING_FUNCTION_BODY, false);
|
| if (constKeyword != null && factoryKeyword != null) {
|
|
|