Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/warnings.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/warnings.dart b/sdk/lib/_internal/compiler/implementation/warnings.dart |
| index 37c3e2396cda4695eba2eba224d887f267b29607..cea68a2eef512ad12a9324ecce7f7074395af5f3 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/warnings.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/warnings.dart |
| @@ -991,6 +991,16 @@ main() => new C();"""]); |
| static const MessageKind ILLEGAL_FINAL_METHOD_MODIFIER = const MessageKind( |
| "Cannot have final modifier on method."); |
| + static const MessageKind ILLEGAL_CONST_FIELD_MODIFIER = const MessageKind( |
| + "Cannot have const modifier on non-static field.", |
| + howToFix: "Add a static modifier, or remove the const modifier.", |
|
Johnni Winther
2014/06/25 07:21:03
'Add a ... or remove the ...' -> 'Try adding a ...
srawlins
2014/07/15 20:13:28
Done.
|
| + examples: const [""" |
| +class C { |
| + const int a = 1; |
| +} |
| + |
| +main() => new C();"""]); |
| + |
| static const MessageKind ILLEGAL_CONSTRUCTOR_MODIFIERS = const MessageKind( |
| "Illegal constructor modifiers: '#{modifiers}'."); |