Index: tests/language/type_checks_in_factory_method_test.dart |
diff --git a/tests/language/type_checks_in_factory_method_test.dart b/tests/language/type_checks_in_factory_method_test.dart |
index 13686d5fdeac1b72d3d7b1f46fe056abbf8a360e..8a554277bd0d6f0e413c1cdc3ba8bbe34f549f27 100644 |
--- a/tests/language/type_checks_in_factory_method_test.dart |
+++ b/tests/language/type_checks_in_factory_method_test.dart |
@@ -32,7 +32,7 @@ main() { |
try { |
Foo<int> value2 = new Foo<int>.from(); |
- } catch (TypeError e) { |
+ } on TypeError catch (e) { |
gotError = true; |
} |
Expect.equals(true, gotError); |