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

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: Remove unused variable. 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
« no previous file with comments | « tests/compiler/dart2js/pretty_parameter_test.dart ('k') | tests/corelib/list_iterators_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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++];
}
« no previous file with comments | « tests/compiler/dart2js/pretty_parameter_test.dart ('k') | tests/corelib/list_iterators_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698