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

Unified Diff: sdk/lib/_internal/compiler/implementation/warnings.dart

Issue 11453009: Report a compile-time error when a setter has not exactly one formal parameter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years 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
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 fa8289d7a96e81b83fad1465e639aa9311145565..9c07fd32e6f879afaacdac72a1e9545353dc21a3 100644
--- a/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -219,6 +219,9 @@ class MessageKind {
static const SETTER_MISMATCH = const MessageKind(
"Error: getter disagrees on: #{1}.");
+ static const ILLEGAL_SETTER_FORMALS = const MessageKind(
+ "Error: a setter must have exactly one argument.");
+
static const NO_STATIC_OVERRIDE = const MessageKind(
"Error: static member cannot override instance member '#{1}' of '#{2}'.");

Powered by Google App Engine
This is Rietveld 408576698