| Index: sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| index aba2213c581e3c1b60005ae7c3cca65202e2c4c1..114e74f8ba21a20b896d2a82104c006ab48fb0a6 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| @@ -4127,6 +4127,14 @@ class SignatureResolver extends CommonResolverVisitor<Element> {
|
| }
|
|
|
| Element visitFunctionExpression(FunctionExpression node) {
|
| + Modifiers modifiers = currentDefinitions.modifiers;
|
| + if (modifiers.isFinal()) {
|
| + compiler.reportError(modifiers,
|
| + MessageKind.FINAL_FUNCTION_TYPE_PARAMETER);
|
| + }
|
| + if (modifiers.isVar()) {
|
| + compiler.reportError(modifiers, MessageKind.VAR_FUNCTION_TYPE_PARAMETER);
|
| + }
|
| // This is a function typed parameter.
|
| // TODO(ahe): Resolve the function type.
|
| return visit(node.name);
|
|
|