Skip to content

Improve -Wunused:locals,privates by tracking use of vars (if set or not) #16639

Closed
@PaulCoral

Description

@PaulCoral

In merged PR #16157, -Wunused:locals -Wunused:privates only checks if the definitions are used (read).

As suggested in the mentioned PR, the idea would be to improve these warnings as in Scala 2 -Ywarn-unused:<args> and to track also whether vars are set or not, see this Scala 2 test example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions