Index: runtime/lib/array_patch.dart |
diff --git a/runtime/lib/array_patch.dart b/runtime/lib/array_patch.dart |
index b84904b16b378a365bf39f381310912db9d01a43..08ef4822a6035f4a663219a9146403d3eca03e61 100644 |
--- a/runtime/lib/array_patch.dart |
+++ b/runtime/lib/array_patch.dart |
@@ -5,7 +5,7 @@ |
// Note that the optimizing compiler depends on the algorithm which |
// returns a _GrowableObjectArray if length is null, otherwise returns |
// fixed size array. |
-patch class ListImplementation<E> { |
+patch class _ListImpl<E> { |
/* patch */ factory List([int length = null]) { |
if (length === null) { |
return new _GrowableObjectArray<E>(); |
@@ -14,8 +14,8 @@ patch class ListImplementation<E> { |
} |
} |
- /* patch */ static _from(Iterable other) { |
- _GrowableObjectArray list = new _GrowableObjectArray(); |
+ /* patch */ factory List.from(Iterable<E> other) { |
+ _GrowableObjectArray<E> list = new _GrowableObjectArray<E>(); |
for (final e in other) { |
list.add(e); |
} |