Skip to content

$conforms[Nothing] shows up as a placeholder for missing implicits #8053

Closed
@julienrf

Description

@julienrf

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions