Commit b61181f
committed
Do not remove InPatternAlternative when typing subexpressions
We use typedExpr to type the contents of a quoted pattern. In that
case it must not have the Pattern mode mut should keep the
InPatternAlternative because it will be needed in the pattern located
in the splices.1 parent 9ed7ac5 commit b61181f
File tree
3 files changed
+2
-15
lines changed- compiler/src/dotty/tools/dotc
- core
- typer
- tests/neg-macros
3 files changed
+2
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
Lines changed: 0 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | 246 | | |
258 | 247 | | |
259 | 248 | | |
| |||
265 | 254 | | |
266 | 255 | | |
267 | 256 | | |
268 | | - | |
269 | 257 | | |
270 | 258 | | |
271 | 259 | | |
| |||
278 | 266 | | |
279 | 267 | | |
280 | 268 | | |
281 | | - | |
282 | 269 | | |
283 | 270 | | |
284 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments