Commit 59f3def
Better infos for dependent class parameter references
We sometimes create a dependent parameter reference p.X where
`p` is a path with a type that has a wildcard argument, e.g. `P[X >: L <: H].`
So far the denotation of `p.X` had as info the bounds with which `X` was
declared in `P`. Now it gets the actual parameter bounds instead.
Fixes #15652
#15652 started failing when tuple unpackings started to use `val`s instead of `def`s
in #14816. That caused dependent class parameter references to be created and uncovered
the problem.1 parent 9fa1f48 commit 59f3def
File tree
4 files changed
+25
-8
lines changed- compiler/src/dotty/tools/dotc/core
- tests/pos
4 files changed
+25
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1118 | 1118 | | |
1119 | 1119 | | |
1120 | 1120 | | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
1121 | 1125 | | |
1122 | 1126 | | |
1123 | 1127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
430 | | - | |
| 429 | + | |
431 | 430 | | |
432 | 431 | | |
433 | 432 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2453 | 2453 | | |
2454 | 2454 | | |
2455 | 2455 | | |
2456 | | - | |
2457 | | - | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
2458 | 2460 | | |
2459 | | - | |
| 2461 | + | |
2460 | 2462 | | |
2461 | 2463 | | |
2462 | 2464 | | |
| |||
2468 | 2470 | | |
2469 | 2471 | | |
2470 | 2472 | | |
2471 | | - | |
| 2473 | + | |
2472 | 2474 | | |
2473 | 2475 | | |
2474 | 2476 | | |
| |||
5803 | 5805 | | |
5804 | 5806 | | |
5805 | 5807 | | |
5806 | | - | |
| 5808 | + | |
5807 | 5809 | | |
5808 | 5810 | | |
5809 | | - | |
| 5811 | + | |
5810 | 5812 | | |
5811 | 5813 | | |
5812 | 5814 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments