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

Unified Diff: sdk/lib/_internal/compiler/implementation/util/link.dart

Issue 12401002: Make List.from and Iterable.toList default to not growable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/_internal/compiler/implementation/util/link.dart
diff --git a/sdk/lib/_internal/compiler/implementation/util/link.dart b/sdk/lib/_internal/compiler/implementation/util/link.dart
index 87caf3fd7ca816ef42f5e1ff4ba0a11c75e22505..d3f93ca2191f4706f77063c7e69e1a5fe169afa4 100644
--- a/sdk/lib/_internal/compiler/implementation/util/link.dart
+++ b/sdk/lib/_internal/compiler/implementation/util/link.dart
@@ -38,7 +38,7 @@ class Link<T> extends Iterable<T> {
void printOn(StringBuffer buffer, [separatedBy]) {
}
- List toList({ bool growable: false }) => growable ? <T>[] : new List<T>(0);
+ List toList({ bool growable: true }) => growable ? <T>[] : new List<T>(0);
bool get isEmpty => true;

Powered by Google App Engine
This is Rietveld 408576698