Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: pkg/compiler/lib/src/warnings.dart

Issue 898703004: Fix async_test problems. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | tests/language/async_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | tests/language/async_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698