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

Unified Diff: tests/language/src/ListLiteral4Test.dart

Issue 9289029: Added runtime type checking to the elements of list and map literals in dartc (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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: tests/language/src/ListLiteral4Test.dart
diff --git a/tests/language/src/ListLiteral4Test.dart b/tests/language/src/ListLiteral4Test.dart
index ab22bb10932dfa4eeb9731ac8e9cf3ba2804b341..cd9a3d00346809c6a88773e812df8abd6e60da03 100644
--- a/tests/language/src/ListLiteral4Test.dart
+++ b/tests/language/src/ListLiteral4Test.dart
@@ -20,7 +20,7 @@ class ListLiteral4Test<T> {
result += 10;
}
try {
- var m = <T>{"a": "b"}; // "b" is not an int.
+ var m = <T>["a", "b"]; // "b" is not an int.
zundel 2012/01/25 23:41:22 My guess is this was some kind of cut and paste er
} catch (TypeError error) {
result += 100;
}

Powered by Google App Engine
This is Rietveld 408576698