[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:
Alexander Markov 2018-01-17 22:31:18 +00:00 committed by commit-bot@chromium.org
parent 2c951120a9
commit 7bd5093f83
2 changed files with 1 additions and 3 deletions

View file

@ -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();

View file

@ -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