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 @@ -105,7 +105,7 @@ object Parsers {
105
105
private val InCase : Region => Region = Scanners .InCase (_)
106
106
private val InCond : Region => Region = Scanners .InParens (LPAREN , _)
107
107
private val InFor : Region => Region = Scanners .InBraces (_)
108
- private val InBrk : Region => Region =
108
+ private val InOldCond : Region => Region = // old-style Cond to allow indent when InParens, see #22608
109
109
case p : Scanners .InParens => Scanners .Indented (p.indentWidth, p.prefix, p)
110
110
case r => r
111
111
@@ -2328,7 +2328,7 @@ object Parsers {
2328
2328
def condExpr (altToken : Token ): Tree =
2329
2329
val t : Tree =
2330
2330
if in.token == LPAREN then
2331
- inSepRegion(InBrk ): // allow inferred NEWLINE for observeIndented below
2331
+ inSepRegion(InOldCond ): // allow inferred NEWLINE for observeIndented below
2332
2332
atSpan(in.offset):
2333
2333
makeTupleOrParens(inParensWithCommas(commaSeparated(exprInParens)))
2334
2334
.pipe: t =>
You can’t perform that action at this time.
0 commit comments