Index: tests/compiler/dart2js/gvn_test.dart |
diff --git a/tests/compiler/dart2js/gvn_test.dart b/tests/compiler/dart2js/gvn_test.dart |
index 664ac2bbe707912242ac289f719302f3055cc028..ec06ea68a839a9ea998da9b4b993a50a29b6b055 100644 |
--- a/tests/compiler/dart2js/gvn_test.dart |
+++ b/tests/compiler/dart2js/gvn_test.dart |
@@ -17,7 +17,7 @@ main() { |
String generated = compile(TEST_ONE, entry: 'foo'); |
RegExp regexp = const RegExp(r"1 \+ [a-z]+"); |
Iterator matches = regexp.allMatches(generated).iterator(); |
- Expect.isTrue(matches.hasNext()); |
+ Expect.isTrue(matches.hasNext); |
matches.next(); |
- Expect.isFalse(matches.hasNext()); |
+ Expect.isFalse(matches.hasNext); |
} |