Closed
Description
minimized code
class Foo
List(new Foo).sorted
https://scastie.scala-lang.org/27qWTarCSHyAW7OtgXGGvg
The error message unexpectedly mentions $conform[Nothing]
.
No implicit Ordering defined for B
where: B is a type variable with constraint >: Foo
I found:
scala.math.Ordering.ordered[A]($conforms[Nothing])
But method $conforms in object Predef does not match type scala.math.Ordering.AsComparable[A].
expectation
The error message should be:
No implicit Ordering defined for B
where: B is a type variable with constraint >: Foo
(there should be no “I found: ...” part)