mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:07:11 +00:00
[corelib] Fix type argument of Iterable from EmptyIterable.map
Change-Id: Ifee26537d05848e4ea6d354f5d57e0f14574d050 Reviewed-on: https://dart-review.googlesource.com/35460 Reviewed-by: Régis Crelier <regis@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>
This commit is contained in:
parent
2c951120a9
commit
7bd5093f83
2 changed files with 1 additions and 3 deletions
|
@ -730,7 +730,7 @@ class EmptyIterable<E> extends EfficientLengthIterable<E> {
|
||||||
|
|
||||||
Iterable<E> where(bool test(E element)) => this;
|
Iterable<E> where(bool test(E element)) => this;
|
||||||
|
|
||||||
Iterable<T> map<T>(T f(E element)) => const EmptyIterable();
|
Iterable<T> map<T>(T f(E element)) => new EmptyIterable<T>();
|
||||||
|
|
||||||
E reduce(E combine(E value, E element)) {
|
E reduce(E combine(E value, E element)) {
|
||||||
throw IterableElementError.noElement();
|
throw IterableElementError.noElement();
|
||||||
|
|
|
@ -333,7 +333,6 @@ bigint_test: Pass, Timeout # Please triage.
|
||||||
apply3_test: CompileTimeError # Issue 31402 (Invocation arguments)
|
apply3_test: CompileTimeError # Issue 31402 (Invocation arguments)
|
||||||
bool_from_environment2_test/03: MissingCompileTimeError
|
bool_from_environment2_test/03: MissingCompileTimeError
|
||||||
compare_to2_test: RuntimeError
|
compare_to2_test: RuntimeError
|
||||||
iterable_empty_test: RuntimeError
|
|
||||||
iterable_fold_test/02: RuntimeError
|
iterable_fold_test/02: RuntimeError
|
||||||
iterable_reduce_test/01: CompileTimeError # Issue 31533
|
iterable_reduce_test/01: CompileTimeError # Issue 31533
|
||||||
iterable_reduce_test/none: RuntimeError
|
iterable_reduce_test/none: RuntimeError
|
||||||
|
@ -362,7 +361,6 @@ unicode_test: RuntimeError
|
||||||
[ $compiler == dartkp && $runtime == dart_precompiled && $strong ]
|
[ $compiler == dartkp && $runtime == dart_precompiled && $strong ]
|
||||||
bool_from_environment2_test/03: MissingCompileTimeError
|
bool_from_environment2_test/03: MissingCompileTimeError
|
||||||
compare_to2_test: RuntimeError
|
compare_to2_test: RuntimeError
|
||||||
iterable_empty_test: RuntimeError
|
|
||||||
iterable_fold_test/02: RuntimeError
|
iterable_fold_test/02: RuntimeError
|
||||||
iterable_reduce_test/01: CompileTimeError # Issue 31533
|
iterable_reduce_test/01: CompileTimeError # Issue 31533
|
||||||
iterable_reduce_test/none: RuntimeError
|
iterable_reduce_test/none: RuntimeError
|
||||||
|
|
Loading…
Reference in a new issue