Chromium Code Reviews

Unified Diff: tests/language/map_literal1_negative_test.dart

Issue 10854191: Require two type arguments for map literals (issue 4522). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: tests/language/map_literal1_negative_test.dart
===================================================================
--- tests/language/map_literal1_negative_test.dart (revision 10854)
+++ tests/language/map_literal1_negative_test.dart (working copy)
@@ -7,7 +7,7 @@
main() {
try {
- var m = const <String>{"a": 0}; // 0 is not a String.
+ var m = const <String, String>{"a": 0}; // 0 is not a String.
} catch (TypeError error) {
// not a catchable error
}

Powered by Google App Engine