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;