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

Unified Diff: tests/corelib/map_from_test.dart

Issue 11280135: Issue 6836. Using undeclared identifier in static context is now warning. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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: tests/corelib/map_from_test.dart
diff --git a/tests/corelib/map_from_test.dart b/tests/corelib/map_from_test.dart
index 00d1a606fac37435e68edcf635e873b51eb75443..8c8a5bcb1b76ad54126fe40fee4daf718f91200e 100644
--- a/tests/corelib/map_from_test.dart
+++ b/tests/corelib/map_from_test.dart
@@ -20,9 +20,9 @@ testWithConstMap() {
Expect.equals(2, otherMap.values.length);
var count = (map) {
- int count = 0;
- map.forEach((a, b) { count += b; });
- return count;
+ int cnt = 0;
+ map.forEach((a, b) { cnt += b; });
+ return cnt;
};
Expect.equals(42 + 43, count(map));

Powered by Google App Engine
This is Rietveld 408576698