Commit 7bce28e
Fix position of desugared tree wrapped in parentheses
Before this commit, the added testcase produced the following result:
scala> while ((( foo ))) {}
1 |while ((( foo ))) {}
| ^^^^^^^^^^^
| not found: foo1 parent 9a0c822 commit 7bce28e
File tree
2 files changed
+16
-3
lines changed- compiler
- src/dotty/tools/dotc/ast
- test-resources/repl
2 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1017 | 1017 | | |
1018 | 1018 | | |
1019 | 1019 | | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
1020 | 1024 | | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
1021 | 1031 | | |
1022 | 1032 | | |
1023 | 1033 | | |
| |||
1057 | 1067 | | |
1058 | 1068 | | |
1059 | 1069 | | |
1060 | | - | |
1061 | | - | |
1062 | 1070 | | |
1063 | 1071 | | |
1064 | 1072 | | |
| |||
1096 | 1104 | | |
1097 | 1105 | | |
1098 | 1106 | | |
1099 | | - | |
| 1107 | + | |
| 1108 | + | |
1100 | 1109 | | |
1101 | 1110 | | |
1102 | 1111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
0 commit comments