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

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

Issue 8921033: Implement revised factories in the VM. (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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: corelib/src/implementation/linked_hash_map.dart
===================================================================
--- corelib/src/implementation/linked_hash_map.dart (revision 2391)
+++ corelib/src/implementation/linked_hash_map.dart (working copy)
@@ -29,8 +29,7 @@
}
// See issue 417. Works in the vm, fails in dartc and frog.
- factory LinkedHashMapImplementation/*<K extends Hashable, V>*/
- .from(Map/*<K, V>*/ other) {
+ factory LinkedHashMapImplementation.from(Map/*<K, V>*/ other) {
Map/*<K, V>*/ result = new LinkedHashMapImplementation/*<K, V>*/();
other.forEach((/*K*/ key, /*V*/ value) { result[key] = value; });
return result;

Powered by Google App Engine
This is Rietveld 408576698