Index: tests/language/bool_test.dart |
diff --git a/tests/language/bool_test.dart b/tests/language/bool_test.dart |
index 166a0f169bdf9bdd7fbd306b70c419e923919cd4..8263d0abdc8ff515e5e25bdd1284b2b61c2c5094 100644 |
--- a/tests/language/bool_test.dart |
+++ b/tests/language/bool_test.dart |
@@ -116,14 +116,14 @@ class BoolTest { |
testOr(a, b, onTypeError) { |
try { |
return a || b; |
- } catch (TypeError t) { |
+ } on TypeError catch (t) { |
return onTypeError; |
} |
} |
testAnd(a, b, onTypeError) { |
try { |
return a && b; |
- } catch (TypeError t) { |
+ } on TypeError catch (t) { |
return onTypeError; |
} |
} |