Index: tests/language/map_literal2_negative_test.dart |
diff --git a/tests/language/map_literal2_negative_test.dart b/tests/language/map_literal2_negative_test.dart |
index 9a981bc5f05b60cb3811e08045bb6b763bb95927..e02e5d0b5bedf3d798320abdbaf37c15e26af94c 100644 |
--- a/tests/language/map_literal2_negative_test.dart |
+++ b/tests/language/map_literal2_negative_test.dart |
@@ -10,7 +10,7 @@ class MapLiteral2NegativeTest<T> { |
try { |
var m = const <String, T>{"a": 0}; // Type parameter is not allowed with |
// const. |
- } catch (TypeError error) { |
+ } on TypeError catch (error) { |
} |
} |
} |