Skip to content

Commit 39cafa7

Browse files
committed
Fix argumentStart to not skip blank lines
1 parent 81331f8 commit 39cafa7

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
@@ -1280,7 +1280,7 @@ object Parsers {
12801280

12811281
def argumentStart(): Unit =
12821282
colonAtEOLOpt()
1283-
if in.isScala2CompatMode && in.isNewLine && in.next.token == LBRACE then
1283+
if in.isScala2CompatMode && in.token == NEWLINE && in.next.token == LBRACE then
12841284
in.nextToken()
12851285
if in.indentWidth(in.offset) == in.currentRegion.indentWidth then
12861286
in.errorOrMigrationWarning(

0 commit comments

Comments
 (0)