Commit c34ac1c
committed
Make parameter types of synthesized context functions inferred type trees
A non-sensical capture reference appeared in the type of a synthesized context function
literal. We do clean out @retains annotations that can contain such references, but only
for inferred type trees. The problem was that context function parameters were treated
like explicitly given types before.
Fixes #201351 parent 9d990fb commit c34ac1c
File tree
2 files changed
+12
-1
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/pos
2 files changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3271 | 3271 | | |
3272 | 3272 | | |
3273 | 3273 | | |
3274 | | - | |
| 3274 | + | |
3275 | 3275 | | |
3276 | 3276 | | |
3277 | 3277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments