Index: tests/language/function_malformed_result_type_test.dart |
diff --git a/tests/language/function_malformed_result_type_test.dart b/tests/language/function_malformed_result_type_test.dart |
index 8d8a0f1fe4f12788bf3112571b0ae9d308fc6e26..c41936e0f6420afebe9018d92691fa5ddbeb28b2 100644 |
--- a/tests/language/function_malformed_result_type_test.dart |
+++ b/tests/language/function_malformed_result_type_test.dart |
@@ -10,7 +10,7 @@ isCheckedMode() { |
var i = 1; |
String s = i; |
return false; |
- } catch(var e) { |
+ } catch (e) { |
return true; |
} |
} |
@@ -21,7 +21,7 @@ main() { |
bool got_type_error = false; |
try { |
f(); |
- } catch (TypeError error) { |
+ } on TypeError catch (error) { |
got_type_error = true; |
} |
// No type error expected, since returned null is not type checked. |
@@ -32,7 +32,7 @@ main() { |
bool got_type_error = false; |
try { |
f(); |
- } catch (TypeError error) { |
+ } on TypeError catch (error) { |
got_type_error = true; |
} |
// Type error expected in checked mode only. |