Commit 3a2635d
authored
Fix incorrect warning with -no-indent (scala#23216)
This PR change the condition to emit the warning “Line is indented too
far to the right, or a `{` or `:` is missing” introduced in scala#7270 to
only emit it if we are inside an `Indented` region. This fixes scala#21749.File tree
2 files changed
+10
-1
lines changed- compiler/src/dotty/tools/dotc/parsing
- tests/pos
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
724 | | - | |
| 724 | + | |
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments