Index: tests/language/function_type_test.dart |
diff --git a/tests/language/function_type_test.dart b/tests/language/function_type_test.dart |
index 647770aad354eaaafb0471936eeabe01793f2742..4beb620b2a07e9f6dac9e384b4360d911a26cd2c 100644 |
--- a/tests/language/function_type_test.dart |
+++ b/tests/language/function_type_test.dart |
@@ -8,7 +8,7 @@ isCheckedMode() { |
var i = 1; |
String s = i; |
return false; |
- } catch(var e) { |
+ } catch (e) { |
return true; |
} |
} |
@@ -27,7 +27,7 @@ main() { |
// However, run time type of returned function is not a subtype of FListInt. |
// Run time type check should not be eliminated. |
FListInt fli = f(); |
- } catch (TypeError error) { |
+ } on TypeError catch (error) { |
got_type_error = true; |
} |
// Type error expected in checked mode only. |