Index: tests/compiler/dart2js/no_duplicate_constructor_body2_test.dart |
diff --git a/tests/compiler/dart2js/no_duplicate_constructor_body2_test.dart b/tests/compiler/dart2js/no_duplicate_constructor_body2_test.dart |
index b5e2674562c0bdbb288caf3bcd5fe055402d0710..f2de6cf41564910146663bf010a88cce5102d346 100644 |
--- a/tests/compiler/dart2js/no_duplicate_constructor_body2_test.dart |
+++ b/tests/compiler/dart2js/no_duplicate_constructor_body2_test.dart |
@@ -23,6 +23,6 @@ main() { |
main() { |
String generated = compileAll(CODE); |
RegExp regexp = new RegExp(r'A\$0: function'); |
- Iterator<Match> matches = regexp.allMatches(generated).iterator(); |
+ Iterator<Match> matches = regexp.allMatches(generated).iterator; |
checkNumberOfMatches(matches, 1); |
} |