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

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

Issue 8989015: Updates the corelib to the new default specification for interfaces and new factory syntax (Closed) Base URL: https://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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« 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
diff --git a/corelib/src/implementation/queue.dart b/corelib/src/implementation/queue.dart
index 418e8ed226e9303946dea200a45672866419233b..e4d1ddbab8a52ac34552b9aa9f1aaa8a80acf215 100644
--- a/corelib/src/implementation/queue.dart
+++ b/corelib/src/implementation/queue.dart
@@ -102,9 +102,8 @@ class DoubleLinkedQueue<E> implements Queue<E> {
_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
This is Rietveld 408576698