Commit 0ea0eba
authored
Fix parsing of conditional expressions in parentheses (#19985)
We overlooked that the first parenthesized expression might be a tuple.
See https://users.scala-lang.org/t/parsing-conditionals/9888File tree
2 files changed
+6
-1
lines changed- compiler/src/dotty/tools/dotc/parsing
- tests/pos
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2192 | 2192 | | |
2193 | 2193 | | |
2194 | 2194 | | |
2195 | | - | |
| 2195 | + | |
| 2196 | + | |
2196 | 2197 | | |
2197 | 2198 | | |
2198 | 2199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments