Skip to content

Suggested import clauses should not include paths that are already part of the implicit scope #8051

Closed
@julienrf

Description

@julienrf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:reportingError reporting including formatting, implicit suggestions, etcitype:bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions