Index: tests/language/f_bounded_quantification_test.dart |
diff --git a/tests/language/f_bounded_quantification_test.dart b/tests/language/f_bounded_quantification_test.dart |
index f4b98078b401fa0bcf8aa588044b0104ca222e60..928b71eea5575fa9ece00d44d1648646514e2751 100644 |
--- a/tests/language/f_bounded_quantification_test.dart |
+++ b/tests/language/f_bounded_quantification_test.dart |
@@ -20,7 +20,7 @@ isCheckedMode() { |
var i = 1; |
String s = i; |
return false; |
- } catch(var e) { |
+ } catch (e) { |
return true; |
} |
} |
@@ -31,7 +31,7 @@ main() { |
bool got_type_error = false; |
try { |
FBound<SubBar> fsb = new FBound<SubBar>(); /// 01: static type warning |
- } catch (TypeError error) { |
+ } on TypeError catch (error) { |
got_type_error = true; |
} |
// Type error in checked mode only. |
@@ -42,7 +42,7 @@ main() { |
bool got_type_error = false; |
try { |
FBound<SubBaz<Bar>> fsb = new FBound<SubBaz<Bar>>(); /// 02: static type warning |
- } catch (TypeError error) { |
+ } on TypeError catch (error) { |
got_type_error = true; |
} |
// Type error in checked mode only. |