Index: tests/compiler/dart2js/code_motion_test.dart |
diff --git a/tests/compiler/dart2js/code_motion_test.dart b/tests/compiler/dart2js/code_motion_test.dart |
index f06cd056b39258d7e8561618036d98c913d5ea01..d14cc696974d4e115f4a4f78c60686c2cd05e6d3 100644 |
--- a/tests/compiler/dart2js/code_motion_test.dart |
+++ b/tests/compiler/dart2js/code_motion_test.dart |
@@ -20,8 +20,7 @@ foo(int a, int b, bool param2) { |
main() { |
String generated = compile(TEST_ONE, entry: 'foo'); |
RegExp regexp = new RegExp('a \\+ b'); |
- Iterator matches = regexp.allMatches(generated).iterator(); |
- Expect.isTrue(matches.hasNext); |
- matches.next(); |
- Expect.isFalse(matches.hasNext); |
+ Iterator matches = regexp.allMatches(generated).iterator; |
+ Expect.isTrue(matches.moveNext()); |
+ Expect.isFalse(matches.moveNext()); |
} |