| Index: pkg/compiler/lib/src/warnings.dart
|
| diff --git a/pkg/compiler/lib/src/warnings.dart b/pkg/compiler/lib/src/warnings.dart
|
| index 15098af7b643d0207a5eb5d9752ca15bd45fb7e8..c78827697afbac74518f565d85329838173018c8 100644
|
| --- a/pkg/compiler/lib/src/warnings.dart
|
| +++ b/pkg/compiler/lib/src/warnings.dart
|
| @@ -2144,6 +2144,17 @@ class A {
|
| }
|
| main() => new A.a();"""]);
|
|
|
| + static const MessageKind ASYNC_MODIFIER_ON_SETTER =
|
| + const MessageKind(
|
| + "The modifier '#{modifier}' is not allowed on setters.",
|
| + options: const ['--enable-async'],
|
| + howToFix: "Try removing the '#{modifier}' modifier.",
|
| + examples: const ["""
|
| +class A {
|
| + set foo(v) async {}
|
| +}
|
| +main() => new A().foo = 0;"""]);
|
| +
|
| static const MessageKind YIELDING_MODIFIER_ON_ARROW_BODY =
|
| const MessageKind(
|
| "The modifier '#{modifier}' is not allowed on methods implemented "
|
|
|