Skip to content

Commit ba1354d

Browse files
committed
Workaround Scanner.lookahead limitation
1 parent 12a545b commit ba1354d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ object Parsers {
11311131

11321132
if in.token == THIS then handleThis(EmptyTypeIdent)
11331133
else if in.token == SUPER then handleSuper(EmptyTypeIdent)
1134-
else if in.lookahead.token == DOT then
1134+
else if in.token != INTERPOLATIONID && in.lookahead.token == DOT then
11351135
val tok = in.token
11361136
val offset = in.offset
11371137
val name = ident()

0 commit comments

Comments
 (0)