Index: tests/language/map_literal1_negative_test.dart |
diff --git a/tests/language/map_literal1_negative_test.dart b/tests/language/map_literal1_negative_test.dart |
index 05ffbe46feb59381e923c4d7c02925380aa1b00c..43da66a004d6ab2e52314309857ad2d717a5a988 100644 |
--- a/tests/language/map_literal1_negative_test.dart |
+++ b/tests/language/map_literal1_negative_test.dart |
@@ -8,7 +8,7 @@ |
main() { |
try { |
var m = const <String, String>{"a": 0}; // 0 is not a String. |
- } catch (TypeError error) { |
+ } on TypeError catch (error) { |
// not a catchable error |
} |
} |