Skip to content

Unused values reported out of order #13051

Open
@som-snytt

Description

@som-snytt

Scala version: 2.13.15

Under -Wnonunit-statement, for some if/else or blocks, warnings are presented "unsorted".

javac/JavaParsers.scala:1029:13: unused value
javac/JavaParsers.scala:1126:13: unused value
javac/JavaParsers.scala:1106:17: unused value

Problem

In order would be more convenient.

It's probably due to traversal order, but I don't know why all such warnings aren't sorted by position.

For cascading errors, you want the underlying cause first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions