Index: tests/language/void_type_test.dart |
diff --git a/tests/language/void_type_test.dart b/tests/language/void_type_test.dart |
index a5ba9396dc38be9ce2962609aec46180e22192ca..5d52f0b7f9ecc86cc9ce06aaa7dd1b7a07fb0786 100644 |
--- a/tests/language/void_type_test.dart |
+++ b/tests/language/void_type_test.dart |
@@ -8,7 +8,7 @@ isCheckedMode() { |
var i = 1; |
String s = i; |
return false; |
- } catch(var e) { |
+ } catch (e) { |
return true; |
} |
} |
@@ -37,7 +37,7 @@ void test(int n, void func(), bool must_get_error) { |
bool got_type_error = false; |
try { |
var x = func(); |
- } catch (TypeError error) { |
+ } on TypeError catch (error) { |
got_type_error = true; |
} |
// Never a type error in production mode. |
@@ -60,7 +60,7 @@ void test(int n, void func(), bool must_get_error) { |
case 4: x = f_dyn_1(); break; |
case 5: x = f_f(); break; |
} |
- } catch (TypeError error) { |
+ } on TypeError catch (error) { |
got_type_error = true; |
} |
// Never a type error in production mode. |