Index: tests/language/type_variable_scope2_test.dart |
diff --git a/tests/language/type_variable_scope2_test.dart b/tests/language/type_variable_scope2_test.dart |
index 72e4b0c946fbc7406fab7513ce77f0c4337c2027..1c039142f223ac7f69373bd785c14db3c23a51bb 100644 |
--- a/tests/language/type_variable_scope2_test.dart |
+++ b/tests/language/type_variable_scope2_test.dart |
@@ -9,7 +9,7 @@ isCheckedMode() { |
var i = 1; |
String s = i; |
return false; |
- } catch(var e) { |
+ } catch (e) { |
return true; |
} |
} |
@@ -25,7 +25,7 @@ main() { |
bool got_type_error = false; |
try { |
Expect.isTrue(Foo.m() is Foo); |
- } catch (TypeError error) { |
+ } on TypeError catch (error) { |
got_type_error = true; |
} |
// Type error in checked mode only. |