Skip to content

Commit

Permalink
Workaround Scanner.lookahead limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand committed Jul 14, 2023
1 parent 12a545b commit ba1354d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/parsing/Parsers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ object Parsers {

if in.token == THIS then handleThis(EmptyTypeIdent)
else if in.token == SUPER then handleSuper(EmptyTypeIdent)
else if in.lookahead.token == DOT then
else if in.token != INTERPOLATIONID && in.lookahead.token == DOT then
val tok = in.token
val offset = in.offset
val name = ident()
Expand Down

0 comments on commit ba1354d

Please sign in to comment.