Index: tests/language/map_literal1_test.dart |
diff --git a/tests/language/map_literal1_negative_test.dart b/tests/language/map_literal1_test.dart |
similarity index 71% |
rename from tests/language/map_literal1_negative_test.dart |
rename to tests/language/map_literal1_test.dart |
index 43da66a004d6ab2e52314309857ad2d717a5a988..af751299f5781500e95aacbeb73c66eec8f082a5 100644 |
--- a/tests/language/map_literal1_negative_test.dart |
+++ b/tests/language/map_literal1_test.dart |
@@ -6,11 +6,9 @@ |
// When type checks are enabled, a type mismatch in a map literal is a compile-time error |
main() { |
- try { |
- var m = const <String, String>{"a": 0}; // 0 is not a String. |
- } on TypeError catch (error) { |
- // not a catchable error |
- } |
+ var m = const |
+ <String, String> /// 01: compile-time error |
+ {"a": 0}; |
} |