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

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: 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..52299f9da23a709a01f9feabf272ae327be91002 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: setter must have exactly one argument.");
ahe 2012/12/05 20:17:06 "a setter"?
karlklose 2012/12/06 09:13:32 Done.
+
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