Open mrdziuban opened 6 months ago
@mrdziuban I can't seem to reproduce this. Tried with Scala 3.3.3, 3.4.0, 3.4.1 and 9a5b9b4598c567c60d6d339ae28bb7fbff4080db Are you calling the compiler in a specific way? any flags?
@Gedochao yes, sorry I didn't include that initially, this happens with -Wunused:privates
enabled. Here's a scastie that reproduces it: https://scastie.scala-lang.org/mrdziuban/t6lzDsO7RlSHtv1ONz9KBA
Indeed. I added the missing option to the repro description.
Compiler version
3.3.3, 3.4.0, and the latest nightly 3.4.2-RC1-bin-20240320-0ea0eba-NIGHTLY
Minimized code
Output
Expectation
SelfX
should not be reported as unused. Interestingly, the warning goes away ifX
does not have type parameters.