Skip to content

Commit 1b8a41f

Browse files
authored
Merge pull request flutter#66 from srawlins/dart-2-core-lib-2
Fix constructor call with type parameters
2 parents 6431e9a + dbb608e commit 1b8a41f

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.14.5
2+
3+
* Fix issue with EmptyUnmodifiableSet's stubs that were introduced in 1.14.4.
4+
15
## 1.14.4
26

37
* Add implementation stubs of upcoming Dart 2.0 core library methods, namely

lib/src/empty_unmodifiable_set.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ class EmptyUnmodifiableSet<E> extends IterableBase<E>
2020

2121
const EmptyUnmodifiableSet();
2222

23-
EmptyUnmodifiableSet<T> cast<T>() => const EmptyUnmodifiableSet<T>();
23+
EmptyUnmodifiableSet<T> cast<T>() => new EmptyUnmodifiableSet<T>();
2424
bool contains(Object element) => false;
2525
bool containsAll(Iterable<Object> other) => other.isEmpty;
2626
Iterable<E> followedBy(Iterable<E> other) => new Set.from(other);
2727
E lookup(Object element) => null;
28-
EmptyUnmodifiableSet<T> retype<T>() => const EmptyUnmodifiableSet<T>();
28+
EmptyUnmodifiableSet<T> retype<T>() => new EmptyUnmodifiableSet<T>();
2929
E singleWhere(bool test(E element), {E orElse()}) => super.singleWhere(test);
30-
Iterable<T> whereType<T>() => const EmptyUnmodifiableSet<T>();
30+
Iterable<T> whereType<T>() => new EmptyUnmodifiableSet<T>();
3131
Set<E> toSet() => new Set();
3232
Set<E> union(Set<E> other) => new Set.from(other);
3333
Set<E> intersection(Set<Object> other) => new Set();

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: collection
2-
version: 1.14.4
2+
version: 1.14.5
33
author: Dart Team <misc@dartlang.org>
44
description: Collections and utilities functions and classes related to collections.
55
homepage: https://www.github.com/dart-lang/collection

0 commit comments

Comments
 (0)