We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2177da5 commit 724bf9cCopy full SHA for 724bf9c
compiler/src/dotty/tools/dotc/transform/PostTyper.scala
@@ -317,7 +317,7 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
317
if (tree.symbol.is(Unused) && !ctx.mode.is(Mode.Type)) {
318
val msg =
319
if (tree.symbol.is(CaseAccessor)) "First parameter list of case class may not contain `unused` parameters"
320
- else i"`unused` value $tree can only be used as unused arguments"
+ else i"${tree.symbol} is declared as unused, but is in fact used"
321
ctx.error(msg, tree.pos)
322
}
323
0 commit comments