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

Unified Diff: lib/core/collection.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: lib/core/collection.dart
diff --git a/lib/core/collection.dart b/lib/core/collection.dart
index 22381ab1e051e2e7a9963e7dea6b45212c557ec9..35265256572e24f661162c0f32e33004ae20170e 100644
--- a/lib/core/collection.dart
+++ b/lib/core/collection.dart
@@ -95,5 +95,5 @@ abstract class Collection<E> extends Iterable<E> {
/**
* Returns true if there is no element in this collection.
*/
- bool isEmpty() => !iterator().hasNext();
+ bool isEmpty() => !iterator().hasNext;
}

Powered by Google App Engine
This is Rietveld 408576698