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 53187ea commit c0d9db1Copy full SHA for c0d9db1
compiler/src/dotty/tools/dotc/parsing/Scanners.scala
@@ -1359,7 +1359,9 @@ object Scanners {
1359
1360
case class InBraces(var width: IndentWidth | Null, outer: Region)
1361
extends IndentSignificantRegion {
1362
- override def indentWidth =
+ // The indent width starts out as `null` when the opening brace is encountered
1363
+ // It is then adjusted when the next token on a new line is encountered.
1364
+ override def indentWidth: IndentWidth =
1365
if width == null then IndentWidth.Zero else width
1366
}
1367
0 commit comments