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.
2 parents 439fdf7 + 8b32acc commit faa26c6Copy full SHA for faa26c6
compiler/src/dotty/tools/dotc/parsing/Scanners.scala
@@ -528,7 +528,7 @@ object Scanners {
528
case r: Indented =>
529
indentIsSignificant = indentSyntax
530
lastWidth = r.width
531
- newlineIsSeparating = lastWidth <= nextWidth
+ newlineIsSeparating = lastWidth <= nextWidth || r.isOutermost
532
indentPrefix = r.prefix
533
case r: InBraces =>
534
tests/pos/i8606.scala
@@ -0,0 +1,2 @@
1
+ class A {}
2
+@FunctionalInterface class B
0 commit comments