From fd1014dc11e4e282bf768fb67e081b496a593c19 Mon Sep 17 00:00:00 2001 From: "antonm@google.com" Date: Tue, 21 Aug 2012 14:00:32 +0000 Subject: [PATCH] More generic input type. TBR=smok@google.com Review URL: https://chromiumcodereview.appspot.com//10837360 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11046 260f80e4-7a28-3924-810f-c04153c831b5 --- lib/compiler/implementation/dart_backend/backend.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compiler/implementation/dart_backend/backend.dart b/lib/compiler/implementation/dart_backend/backend.dart index 109595032fb..44eb5e57f08 100644 --- a/lib/compiler/implementation/dart_backend/backend.dart +++ b/lib/compiler/implementation/dart_backend/backend.dart @@ -183,7 +183,7 @@ class ReferencedElementCollector extends AbstractVisitor { compareBy(f) => (x, y) => f(x).compareTo(f(y)); -List sorted(List l, comparison) { +List sorted(Iterable l, comparison) { final result = new List.from(l); result.sort(comparison); return result;