Index: compiler/java/com/google/dart/compiler/parser/DartParser.java |
diff --git a/compiler/java/com/google/dart/compiler/parser/DartParser.java b/compiler/java/com/google/dart/compiler/parser/DartParser.java |
index 0345930ca8dbcb43f7f39a6ac742309e21b9c0ca..47acd159c327788f1529c04ef9af83d6e8408cc0 100644 |
--- a/compiler/java/com/google/dart/compiler/parser/DartParser.java |
+++ b/compiler/java/com/google/dart/compiler/parser/DartParser.java |
@@ -1427,6 +1427,9 @@ public class DartParser extends CompletionHooksParserBase { |
} else { |
body = parseFunctionStatementBody(true); |
} |
+ if (body != null && modifiers.isRedirectedConstructor()) { |
+ reportError(position(), ParserErrorCode.REDIRECTING_CONSTRUCTOR_CANNOT_HAVE_A_BODY); |
+ } |
} |
DartFunction function = doneWithoutConsuming(new DartFunction(parameters, body, returnType)); |