Unused warning for NotGiven is not useful #22969
Labels
area:linting
Linting warnings enabled with -W or -Xlint
area:reporting
Error reporting including formatting, implicit suggestions, etc
better-errors
Issues concerned with improving confusing/unhelpful diagnostic messages
itype:enhancement
Compiler version
3.7.0-RC1
Minimized example
Output Error/Warning message
Why this Error/Warning was not helpful
The unused warning is not useful as
NotGiven
is just used for evidence and not expected to be used explicitly.Suggested improvement
It could be made more helpful if no warning was produced. I belive
NotGiven
could be excluded herescala3/compiler/src/dotty/tools/dotc/transform/CheckUnused.scala
Line 607 in d112546
<:<
and=:=
.The text was updated successfully, but these errors were encountered: