Index: dart/sdk/lib/_internal/compiler/implementation/patch_parser.dart |
diff --git a/dart/sdk/lib/_internal/compiler/implementation/patch_parser.dart b/dart/sdk/lib/_internal/compiler/implementation/patch_parser.dart |
index 5ae57794030dc75662656f0e3ef541b17df0ed27..d21e842a6a29b9209e0da108080db7bd7cee1b89 100644 |
--- a/dart/sdk/lib/_internal/compiler/implementation/patch_parser.dart |
+++ b/dart/sdk/lib/_internal/compiler/implementation/patch_parser.dart |
@@ -401,6 +401,7 @@ void patchElement(leg.DiagnosticListener listener, |
origin.isConstructor() || |
origin.isFunction() || |
origin.isAbstractField())) { |
+ // TODO(ahe): Remove this error when the parser rejects all bad modifiers. |
listener.reportError(origin, leg.MessageKind.PATCH_NONPATCHABLE); |
return; |
} |
@@ -415,6 +416,7 @@ void patchElement(leg.DiagnosticListener listener, |
} else if(patch.isFunction()) { |
tryPatchFunction(listener, origin, patch); |
} else { |
+ // TODO(ahe): Remove this error when the parser rejects all bad modifiers. |
listener.reportError(patch, leg.MessageKind.PATCH_NONPATCHABLE); |
} |
} |