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 444de81d79bef85e20afd45882dc47d6ffd08d06..568da95a720cd3fcdfdad013743ce1d246a271c5 100644 |
--- a/tests/compiler/dart2js/code_motion_test.dart |
+++ b/tests/compiler/dart2js/code_motion_test.dart |
@@ -21,7 +21,7 @@ main() { |
String generated = compile(TEST_ONE, entry: 'foo'); |
RegExp regexp = const RegExp('a \\+ b'); |
Iterator matches = regexp.allMatches(generated).iterator(); |
- Expect.isTrue(matches.hasNext()); |
+ Expect.isTrue(matches.hasNext); |
matches.next(); |
- Expect.isFalse(matches.hasNext()); |
+ Expect.isFalse(matches.hasNext); |
} |