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 d69af0f commit 8364bb2Copy full SHA for 8364bb2
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -294,8 +294,7 @@ object Parsers {
294
*/
295
def accept(token: Int): Int =
296
val offset = in.offset
297
- def assumedOutdent = token == OUTDENT && in.token == EOF
298
- if in.token != token /*&& !assumedOutdent*/ then
+ if in.token != token then
299
syntaxErrorOrIncomplete(ExpectedTokenButFound(token, in.token))
300
if in.token == token then in.nextToken()
301
offset
0 commit comments