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

Unified Diff: sdk/lib/collection/list.dart

Issue 24488004: Implement correct scoping rules for variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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: sdk/lib/collection/list.dart
diff --git a/sdk/lib/collection/list.dart b/sdk/lib/collection/list.dart
index 0e0c6116445554ade256019919d6f97b991f0044..734e63c14afa67ecdf10dbf278a67da465b57e83 100644
--- a/sdk/lib/collection/list.dart
+++ b/sdk/lib/collection/list.dart
@@ -315,7 +315,7 @@ abstract class ListMixin<E> implements List<E> {
}
List<E> sublist(int start, [int end]) {
- if (end == null) end = length;
+ if (end == null) end = this.length;
_rangeCheck(start, end);
int length = end - start;
List<E> result = new List<E>()..length = length;

Powered by Google App Engine
This is Rietveld 408576698