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

Unified Diff: lib/coreimpl/collections.dart

Issue 10942025: Convert String and List to abstract classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated to tip-of-tree. Created 8 years, 3 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
Index: lib/coreimpl/collections.dart
diff --git a/lib/coreimpl/collections.dart b/lib/coreimpl/collections.dart
index 07f0abad47e1bd4005746a6a55f85522b184e4a5..e9bd4e6ca5b2a43d0375bc818624c3285d0fc910 100644
--- a/lib/coreimpl/collections.dart
+++ b/lib/coreimpl/collections.dart
@@ -36,8 +36,8 @@ class Collections {
}
static Dynamic reduce(Iterable iterable,
- Dynamic initialValue,
- Dynamic combine(Dynamic previousValue, element)) {
+ var initialValue,
+ Dynamic combine(var previousValue, element)) {
for (final element in iterable) {
initialValue = combine(initialValue, element);
}

Powered by Google App Engine
This is Rietveld 408576698