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 ac4dbf0 commit fe22b3bCopy full SHA for fe22b3b
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -1198,7 +1198,9 @@ object Parsers {
1198
report.errorOrMigrationWarning(
1199
em"""symbol literal '${in.name} is no longer supported,
1200
|use a string literal "${in.name}" or an application Symbol("${in.name}") instead,
1201
- |or enclose in braces '{${in.name}} if you want a quoted expression.""",
+ |or enclose in braces '{${in.name}} if you want a quoted expression.
1202
+ |For now, you can also `import language.deprecated.symbolLiterals` to accept
1203
+ |the idiom, but this possibility might no longer be available in the future.""",
1204
in.sourcePos())
1205
if migrateTo3 then
1206
patch(source, Span(in.offset, in.offset + 1), "Symbol(\"")
0 commit comments