Index: tests/corelib/list_iterators_test.dart |
diff --git a/tests/corelib/list_iterators_test.dart b/tests/corelib/list_iterators_test.dart |
index c3442b973a61964d009e91f300e255bff59e4677..91421ffe83b4a985a7eed942651a478ed22970c9 100644 |
--- a/tests/corelib/list_iterators_test.dart |
+++ b/tests/corelib/list_iterators_test.dart |
@@ -14,7 +14,7 @@ class ListIteratorsTest { |
bool exceptionCaught = false; |
try { |
var eleme = it.next(); |
- } catch (NoMoreElementsException e) { |
+ } on NoMoreElementsException catch (e) { |
exceptionCaught = true; |
} |
Expect.equals(true, exceptionCaught); |