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

Unified Diff: runtime/lib/array.dart

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. 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 | « runtime/bin/string_stream.dart ('k') | runtime/lib/byte_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index 0faf553a33f4ff29c9b2922783dc9931b3816df8..aaa01f5f2b8a66e8d3228f67f3e48a9f9d4c3eb4 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -138,7 +138,7 @@ class _ObjectArray<E> implements List<E> {
"Cannot remove in a non-extendable array");
}
- E last() {
+ E get last {
return this[length - 1];
}
}
@@ -285,7 +285,7 @@ class _ImmutableArray<E> implements List<E> {
"Cannot remove in a non-extendable array");
}
- E last() {
+ E get last {
return this[length - 1];
}
}
« no previous file with comments | « runtime/bin/string_stream.dart ('k') | runtime/lib/byte_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698