Chromium Code Reviews

Unified Diff: corelib/src/implementation/queue.dart

Issue 8931011: Update corelib to revised factory syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « corelib/src/implementation/linked_hash_map.dart ('k') | corelib/src/isolate.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/implementation/queue.dart
===================================================================
--- corelib/src/implementation/queue.dart (revision 2395)
+++ corelib/src/implementation/queue.dart (working copy)
@@ -102,9 +102,8 @@
_sentinel = new _DoubleLinkedQueueEntrySentinel<E>();
}
- // See issue 417. Works in the vm, fails in dartc and frog.
- factory DoubleLinkedQueue.from(Iterable/*<E>*/ other) {
- Queue/*<E>*/ list = new DoubleLinkedQueue();
+ factory DoubleLinkedQueue.from(Iterable<E> other) {
+ Queue<E> list = new DoubleLinkedQueue();
for (final e in other) {
list.addLast(e);
}
« no previous file with comments | « corelib/src/implementation/linked_hash_map.dart ('k') | corelib/src/isolate.dart » ('j') | no next file with comments »

Powered by Google App Engine