Closed
Description
minimized code
class Foo
List(new Foo).sorted
https://scastie.scala-lang.org/K9udu0oDRJCTdURWhocs4w
One of the following imports might make progress towards fixing the problem:
import math.Ordering.comparatorToOrdering
import math.Ordering.ordered
The suggested import clauses wouldn’t change anything because they are already part of the implicit scope (because they refer to definitions that live inside the Ordering
companion object).
expectation
Import clauses that are already part of the implicit scope should not appear.