| 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 91a7a095e565db6a71cf81d9bb69410d442cb0a4..129eb6a45e704b42c75b9775166495a7e48ccbb7 100644
|
| --- a/compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| +++ b/compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| @@ -3570,6 +3570,11 @@ public class DartParser extends CompletionHooksParserBase {
|
| rollback();
|
| return null;
|
| }
|
| + if (function != null && function.getReturnTypeNode() != null) {
|
| + reportError(function.getReturnTypeNode(), ParserErrorCode.DEPRECATED_FUNCTION_LITERAL);
|
| + } else if (namePtr[0] != null) {
|
| + reportError(namePtr[0], ParserErrorCode.DEPRECATED_FUNCTION_LITERAL);
|
| + }
|
| return done(new DartFunctionExpression(namePtr[0], doneWithoutConsuming(function), false));
|
| }
|
|
|
|
|