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.
with
1 parent 4f139dd commit e8d6b49Copy full SHA for e8d6b49
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -1285,7 +1285,7 @@ object Parsers {
1285
if in.lookahead.isIdent(nme.end) then in.token = NEWLINE
1286
else
1287
in.nextToken()
1288
- if in.token != INDENT then
+ if in.token != INDENT && in.token != LBRACE then
1289
syntaxErrorOrIncomplete(i"indented definitions expected, ${in}")
1290
1291
newLineOptWhenFollowedBy(LBRACE)
0 commit comments