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 4d512f0 commit f46dd7bCopy full SHA for f46dd7b
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