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 3aefb59 commit c288c38Copy full SHA for c288c38
compiler/src/dotty/tools/dotc/parsing/Scanners.scala
@@ -1385,7 +1385,7 @@ object Scanners {
1385
getInterpolatedIdentRest(hasSupplement = true)
1386
false // don't continue, identifier rest handles it
1387
else
1388
- val escapeDesc = if escapeChar == '"' then "`$\"\"`, " else "`$'`, "
+ val escapeDesc = if escapeChar == '"' then "`$\"`, " else "`$'`, "
1389
error(s"invalid string interpolation: `$$$$`, $escapeDesc`$$`ident or `$$`BlockExpr expected".toMessage, off = charOffset - 2)
1390
putChar('$')
1391
true // continue parsing after error
0 commit comments