File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/parsing
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ object Parsers {
97
97
private val InCase : Region => Region = Scanners .InCase (_)
98
98
private val InCond : Region => Region = Scanners .InParens (LPAREN , _)
99
99
private val InFor : Region => Region = Scanners .InBraces (_)
100
- private val InBrk : Region => Region =
100
+ private val InOldCond : Region => Region = // old-style Cond to allow indent when InParens, see #22608
101
101
case p : Scanners .InParens => Scanners .Indented (p.indentWidth, p.prefix, p)
102
102
case r => r
103
103
@@ -2132,7 +2132,7 @@ object Parsers {
2132
2132
def condExpr (altToken : Token ): Tree =
2133
2133
val t : Tree =
2134
2134
if in.token == LPAREN then
2135
- inSepRegion(InBrk ): // allow inferred NEWLINE for observeIndented below
2135
+ inSepRegion(InOldCond ): // allow inferred NEWLINE for observeIndented below
2136
2136
atSpan(in.offset):
2137
2137
makeTupleOrParens(inParensWithCommas(commaSeparated(exprInParens)))
2138
2138
.pipe: t =>
You can’t perform that action at this time.
0 commit comments