Index: tests/language/ct_const_test.dart |
diff --git a/tests/language/ct_const_test.dart b/tests/language/ct_const_test.dart |
index ed121c813fcddbbac45cdbcbc557125dabce5353..6f7a5348136fac26a9bcd5b05d3b1df71c94f47e 100644 |
--- a/tests/language/ct_const_test.dart |
+++ b/tests/language/ct_const_test.dart |
@@ -90,7 +90,7 @@ class CTConstTest { |
bool caughtException = false; |
try { |
c11dItaly["green"] = 0; |
- } catch (IllegalAccessException e) { |
+ } on IllegalAccessException catch (e) { |
caughtException = true; |
} |
Expect.equals(true, caughtException); |
@@ -99,7 +99,7 @@ class CTConstTest { |
caughtException = false; |
try { |
c11dItaly.clear(); |
- } catch (IllegalAccessException e) { |
+ } on IllegalAccessException catch (e) { |
caughtException = true; |
} |
Expect.equals(true, caughtException); |
@@ -108,7 +108,7 @@ class CTConstTest { |
caughtException = false; |
try { |
c11dItaly.remove("orange"); |
- } catch (IllegalAccessException e) { |
+ } on IllegalAccessException catch (e) { |
caughtException = true; |
} |
Expect.equals(true, caughtException); |