Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused values reported out of order #13051

Open
som-snytt opened this issue Oct 26, 2024 · 0 comments
Open

Unused values reported out of order #13051

som-snytt opened this issue Oct 26, 2024 · 0 comments

Comments

@som-snytt
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant