Index: tests/corelib/indexed_list_access_test.dart |
diff --git a/tests/corelib/indexed_list_access_test.dart b/tests/corelib/indexed_list_access_test.dart |
index f2ed091fef17f5bcd9f67c6782eb41f20020f162..0cd7d48a7dba7d545bce7d84204d0ca7343708f9 100644 |
--- a/tests/corelib/indexed_list_access_test.dart |
+++ b/tests/corelib/indexed_list_access_test.dart |
@@ -32,9 +32,9 @@ checkList(var list) { |
checkCatch(var f, var list, var index) { |
try { |
f(list, index); |
- } catch (IllegalArgumentException e) { |
+ } on IllegalArgumentException catch (e) { |
return true; |
- } catch (TypeError t) { |
+ } on TypeError catch (t) { |
return true; // thrown in type checked mode. |
} |
return false; |