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 2afb505 commit 41c19c3Copy full SHA for 41c19c3
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -1575,7 +1575,7 @@ object messages {
1575
private val varNote =
1576
if (sym.is(Mutable)) "Note that variables need to be initialized to be defined."
1577
else ""
1578
- 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"""
1579
val kind = "Syntax"
1580
val explanation = s"$varNote"
1581
}
0 commit comments