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

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

Issue 11777016: Fix some failures in html/element_test by changing where(...)[0] to where(...).first. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix type check on .where(...) from List to Iterable. 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 | « no previous file | tests/html/element_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/list.dart
diff --git a/sdk/lib/core/list.dart b/sdk/lib/core/list.dart
index e86e5aa96c9fd183b11e0701d7fcbb4c7cade9fd..a3df3678696dd369a0eee1f0f37330e1e495ea04 100644
--- a/sdk/lib/core/list.dart
+++ b/sdk/lib/core/list.dart
@@ -36,7 +36,7 @@ abstract class List<E> implements Collection<E> {
*
* The length of the returned list is not fixed.
*/
- factory List.from(Iterable<E> other) {
+ factory List.from(Iterable other) {
var list = new List<E>();
for (var e in other) {
floitsch 2013/01/07 14:59:02 for (E e in other) {
list.add(e);
« no previous file with comments | « no previous file | tests/html/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698