Index: tests/compiler/dart2js/type_guard_unuser_test.dart |
diff --git a/tests/compiler/dart2js/type_guard_unuser_test.dart b/tests/compiler/dart2js/type_guard_unuser_test.dart |
index 199968f4b13e6be24fa2183c568276fcfdbfb674..c4922ab8d11b543c8978bd84e1d7ea861f8a1e92 100644 |
--- a/tests/compiler/dart2js/type_guard_unuser_test.dart |
+++ b/tests/compiler/dart2js/type_guard_unuser_test.dart |
@@ -42,13 +42,13 @@ foo(int a, int b) { |
main() { |
String generated = compile(TEST_ONE, entry: 'foo'); |
RegExp regexp = new RegExp(getIntTypeCheck(anyIdentifier)); |
- Iterator<Match> matches = regexp.allMatches(generated).iterator(); |
+ Iterator<Match> matches = regexp.allMatches(generated).iterator; |
checkNumberOfMatches(matches, 0); |
Expect.isTrue(generated.contains(r'return a === true ? $.foo(2) : b;')); |
generated = compile(TEST_TWO, entry: 'foo'); |
regexp = new RegExp("foo\\(1\\)"); |
- matches = regexp.allMatches(generated).iterator(); |
+ matches = regexp.allMatches(generated).iterator; |
checkNumberOfMatches(matches, 1); |
generated = compile(TEST_THREE, entry: 'foo'); |