| Index: corelib/src/implementation/hash_map_set.dart
|
| ===================================================================
|
| --- corelib/src/implementation/hash_map_set.dart (revision 1677)
|
| +++ corelib/src/implementation/hash_map_set.dart (working copy)
|
| @@ -50,10 +50,10 @@
|
| _values = new List<V>(_INITIAL_CAPACITY);
|
| }
|
|
|
| - // See bug 5257789. Works in the vm, fails in dartc and frog.
|
| - factory HashMapImplementation/* <K, V> */.from(Map/* <K, V> */other) {
|
| - Map/* <K, V> */ result = new HashMapImplementation/* <K, V> */();
|
| - other.forEach((/* K */ key, /* V */ value) { result[key] = value; });
|
| + // See issue 417. Works in the vm, fails in dartc and frog.
|
| + factory HashMapImplementation/*<K, V>*/.from(Map/*<K, V>*/ other) {
|
| + Map/*<K, V>*/ result = new HashMapImplementation/*<K, V>*/();
|
| + other.forEach((/*K*/ key, /*V*/ value) { result[key] = value; });
|
| return result;
|
| }
|
|
|
| @@ -275,9 +275,9 @@
|
| _backingMap = new HashMapImplementation<E, E>();
|
| }
|
|
|
| - // See bug 5257789.
|
| - factory HashSetImplementation/* <E> */.from(Iterable/* <E> */ other) {
|
| - Set/* <E> */ set = new HashSetImplementation/* <E> */();
|
| + // See issue 417. Works in the vm, fails in dartc and frog.
|
| + factory HashSetImplementation/*<E>*/.from(Iterable/*<E>*/ other) {
|
| + Set/*<E>*/ set = new HashSetImplementation/*<E>*/();
|
| for (final e in other) {
|
| set.add(e);
|
| }
|
|
|