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

Unified Diff: runtime/lib/typed_data.dart

Issue 51533003: Compile time error if name is used before variable is declared (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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: runtime/lib/typed_data.dart
===================================================================
--- runtime/lib/typed_data.dart (revision 29679)
+++ runtime/lib/typed_data.dart (working copy)
@@ -511,7 +511,7 @@
}
List sublist(int start, [int end]) {
- if (end == null) end = length;
+ if (end == null) end = this.length;
int length = end - start;
_rangeCheck(this.length, start, length);
List result = _createList(length);
« no previous file with comments | « runtime/lib/string_patch.dart ('k') | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698