Skip to content

Spourious unused renamed import warning #20146

Closed
@nicolasstucki

Description

@nicolasstucki

Compiler version

3.3.3, 3.4.0,

Minimized code

//> using options -Wunused:all

def test(list: List[Int]): Int =
  import list.{head => first}
  first

Output

4 |  import list.{head => first}
  |               ^^^^^^^^^^^^^
  |               unused import

Expectation

Should not warn

Metadata

Metadata

Assignees

Labels

area:lintingLinting warnings enabled with -W or -Xlintitype:bugregressionThis worked in a previous version but doesn't anymore

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions