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 7694a5c commit 59f81ddCopy full SHA for 59f81dd
compiler/src/dotty/tools/dotc/parsing/Scanners.scala
@@ -245,7 +245,8 @@ object Scanners {
245
def toToken(identifier: SimpleName): Token =
246
def handleMigration(keyword: Token): Token =
247
if scala3keywords.contains(keyword) && migrateTo3 then
248
- report.errorOrMigrationWarning(i"$identifier is now a keyword, write `$identifier` instead of $identifier to keep it as an identifier", sourcePos())
+ val what = tokenString(keyword)
249
+ report.errorOrMigrationWarning(i"$what is now a keyword, write `$what` instead of $what to keep it as an identifier", sourcePos())
250
patch(source, Span(offset), "`")
251
patch(source, Span(offset + identifier.length), "`")
252
IDENTIFIER
0 commit comments