We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3410426 + f46dd7b commit 8a4c442Copy full SHA for 8a4c442
compiler/src/dotty/tools/dotc/reporting/messages.scala
@@ -1112,7 +1112,7 @@ object messages {
1112
def explain =
1113
if (Tokens.isIdentifier(expected) && Tokens.isKeyword(found))
1114
s"""
1115
- |If you want to use $foundText as identifier, you may put it in backticks: `$foundText`.""".stripMargin
+ |If you want to use $foundText as identifier, you may put it in backticks: `${Tokens.tokenString(found)}`.""".stripMargin
1116
else
1117
""
1118
}
0 commit comments