Closed mrdziuban closed 8 months ago
This is an intentional heuristic, not to warn about trivial RHS, to make the warning less noisy.
There is a PR-in-waiting that adds an option to control whether these heuristics are applied.
I'll leave this ticket unclosed for the moment.
Thanks for the info @som-snytt!
The knob is not available yet. Closing as duplicate for that feature.
Reproduction steps
Scala version: 2.13.9 and up
https://scastie.scala-lang.org/mrdziuban/P84IrKNoS8OP8Y1llFIzOw
Problem
x
should be reported as unused