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 81331f8 commit 39cafa7Copy full SHA for 39cafa7
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -1280,7 +1280,7 @@ object Parsers {
1280
1281
def argumentStart(): Unit =
1282
colonAtEOLOpt()
1283
- if in.isScala2CompatMode && in.isNewLine && in.next.token == LBRACE then
+ if in.isScala2CompatMode && in.token == NEWLINE && in.next.token == LBRACE then
1284
in.nextToken()
1285
if in.indentWidth(in.offset) == in.currentRegion.indentWidth then
1286
in.errorOrMigrationWarning(
0 commit comments