Index: tests/language/closure_type_test.dart |
diff --git a/tests/language/closure_type_test.dart b/tests/language/closure_type_test.dart |
index 3438d201e922cfc61e484637c0d1c0ab0cc4b3ae..a3e53e1a60daabca8c3cba83add9d7d58c7ee55e 100644 |
--- a/tests/language/closure_type_test.dart |
+++ b/tests/language/closure_type_test.dart |
@@ -16,7 +16,7 @@ isCheckedMode() { |
var i = 1; |
String s = i; |
return false; |
- } catch(var e) { |
+ } catch (e) { |
return true; |
} |
} |
@@ -33,7 +33,7 @@ void test(int func(int value), int value) { |
// Therefore, eliminating the run-time type check would be wrong. |
int x = func(value); |
Expect.equals(value, x * x); |
- } catch (TypeError error) { |
+ } on TypeError catch (error) { |
got_type_error = true; |
} |
// Type error expected in checked mode only. |