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 278d212 commit 62a5707Copy full SHA for 62a5707
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -1577,7 +1577,7 @@ object messages {
1577
private val varNote =
1578
if (sym.is(Mutable)) "Note that variables need to be initialized to be defined."
1579
else ""
1580
- val msg = hl"""only classes can have declared but undefined members"""
+ val msg = hl"""declaration of $sym not allowed here: only classes can have declared but undefined members"""
1581
val kind = "Syntax"
1582
val explanation = s"$varNote"
1583
}
0 commit comments