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

Unified Diff: frog/leg/warnings.dart

Issue 9139014: Allow for-in to use a previously declared identifier as variable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add more tests Created 8 years, 11 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
Index: frog/leg/warnings.dart
diff --git a/frog/leg/warnings.dart b/frog/leg/warnings.dart
index 99553a7782c09e265a337bdf39ef49945f32f510..2c0d9a8250bf50f2150b642a8708391f82a936e3 100644
--- a/frog/leg/warnings.dart
+++ b/frog/leg/warnings.dart
@@ -58,6 +58,8 @@ class MessageKind {
'cannot initialize static field #{1}');
static final NOT_A_FIELD = const MessageKind(
'#{1} is not a field');
+ static final INVALID_FOR_IN = const MessageKind(
+ 'Invalid for-in variable declaration.');
toString() => template;
}

Powered by Google App Engine
This is Rietveld 408576698