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

Unified Diff: dart/sdk/lib/core/iterable.dart

Issue 11794047: Remove generic typedefs that dart2js chokes on. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update status files for non-browser tests Created 7 years, 11 months 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
« no previous file with comments | « dart/sdk/lib/async/stream_impl.dart ('k') | dart/sdk/lib/core/list.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/core/iterable.dart
diff --git a/dart/sdk/lib/core/iterable.dart b/dart/sdk/lib/core/iterable.dart
index 083a86db0cfd78a7869f5a9b88f97fcd08fba541..b0c3d1222459968cf54a286b3f67350200ba6e7c 100644
--- a/dart/sdk/lib/core/iterable.dart
+++ b/dart/sdk/lib/core/iterable.dart
@@ -372,7 +372,9 @@ typedef T _Transformation<S, T>(S value);
class MappedIterable<S, T> extends Iterable<T> {
final Iterable<S> _iterable;
- final _Transformation<S, T> _f;
+ // TODO(ahe): Restore type when feature is implemented in dart2js
+ // checked mode.
+ final /* _Transformation<S, T> */ _f;
MappedIterable(this._iterable, T this._f(S element));
@@ -386,7 +388,9 @@ class MappedIterable<S, T> extends Iterable<T> {
class MappedIterator<S, T> extends Iterator<T> {
T _current;
final Iterator<S> _iterator;
- final _Transformation<S, T> _f;
+ // TODO(ahe): Restore type when feature is implemented in dart2js
+ // checked mode.
+ final /* _Transformation<S, T> */ _f;
MappedIterator(this._iterator, T this._f(S element));
« no previous file with comments | « dart/sdk/lib/async/stream_impl.dart ('k') | dart/sdk/lib/core/list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698