| 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 68bccd0600c92103c120ec257e9d2c244b31f4e1..fb393f76983445c4f3f92a48f6012aa0bcc3ac12 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
|
| @@ -2198,6 +2198,9 @@ public class Parser {
|
| if (!bodyAllowed && !(body instanceof EmptyFunctionBody)) {
|
| reportError(ParserErrorCode.EXTERNAL_CONSTRUCTOR_WITH_BODY);
|
| }
|
| + if (constKeyword != null && factoryKeyword != null) {
|
| + reportError(ParserErrorCode.CONST_FACTORY);
|
| + }
|
| }
|
| return new ConstructorDeclaration(
|
| commentAndMetadata.getComment(),
|
|
|