Skip to content

Commit 06b5459

Browse files
author
Sebastian Harko
committed
fix possible bug
1 parent 4ee2d7c commit 06b5459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ object Parsers {
13261326
if (in.token == YIELD) { in.nextToken(); ForYield(enums, expr()) }
13271327
else if (in.token == DO) { in.nextToken(); ForDo(enums, expr()) }
13281328
else {
1329-
if (!wrappedEnums) syntaxError(YieldOrDoExpectedInForComprehension())
1329+
if (!wrappedEnums) syntaxErrorOrIncomplete(YieldOrDoExpectedInForComprehension())
13301330
ForDo(enums, expr())
13311331
}
13321332
}

0 commit comments

Comments
 (0)