Index: pkg/compiler/lib/src/parser/partial_elements.dart |
diff --git a/pkg/compiler/lib/src/parser/partial_elements.dart b/pkg/compiler/lib/src/parser/partial_elements.dart |
index 0b489a128a970b69623a60041798b99ea9bf53fd..17412f731d145f3265644e421b6568f5dd0e08c8 100644 |
--- a/pkg/compiler/lib/src/parser/partial_elements.dart |
+++ b/pkg/compiler/lib/src/parser/partial_elements.dart |
@@ -281,7 +281,7 @@ class PartialFieldList extends VariableList with PartialElement { |
!definitions.modifiers.isConst && |
definitions.type == null && |
!definitions.isErroneous) { |
- listener.reportError( |
+ listener.reportErrorMessage( |
definitions, |
MessageKind.GENERIC, |
{ 'text': 'A field declaration must start with var, final, ' |