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
« no previous file with comments | « tests/language/language_dart2js.status ('k') | tests/language/map_literal2_negative_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/map_literal1_negative_test.dart
===================================================================
--- tests/language/map_literal1_negative_test.dart (revision 10860)
+++ 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
}
« no previous file with comments | « tests/language/language_dart2js.status ('k') | tests/language/map_literal2_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine