Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Unified Diff: tests/compiler/dart2js_extra/for_in_test.dart

Issue 11230011: Make hasNext a getter instead of a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js_extra/for_in_test.dart
diff --git a/tests/compiler/dart2js_extra/for_in_test.dart b/tests/compiler/dart2js_extra/for_in_test.dart
index 54f8b020d54da88e08b691a0d4f8ced09f362474..d2f76ea94f79682a54c13e3b3ffc6396b669e312 100644
--- a/tests/compiler/dart2js_extra/for_in_test.dart
+++ b/tests/compiler/dart2js_extra/for_in_test.dart
@@ -35,7 +35,7 @@ class MyListIterator<T> implements Iterator<T> {
final List<T> values;
int index;
MyListIterator(List<T> values) : this.values = values, index = 0;
- bool hasNext() => index < values.length;
+ bool get hasNext => index < values.length;
T next() => values[index++];
}

Powered by Google App Engine
This is Rietveld 408576698