Index: tests/language/generic_test.dart |
diff --git a/tests/language/generic_test.dart b/tests/language/generic_test.dart |
index 59954b7b5f6a032d45562fbc03baf0cab5d28615..ead39cef2df0bd32bd192f51856c878999162580 100644 |
--- a/tests/language/generic_test.dart |
+++ b/tests/language/generic_test.dart |
@@ -54,7 +54,7 @@ class GenericTest { |
Expect.equals(true, c.b_.isT(const AX())); |
try { |
E e = new E(); // Throws a type error, if type checks are enabled. |
- } catch (TypeError error) { |
+ } on TypeError catch (error) { |
result = 1; |
int pos = error.url.lastIndexOf("/", error.url.length); |
if (pos == -1) { |