Commit 334dffd
committed
Properly type bounds of wildcards in hk positions
Typing a TypeBoundsTree(Empty, Empty) leads to a TypeBoundsTree(Nothing,
Any), if this tree appears in a higher-kinded position, we manually set
its type, but we don't change the upper bound which is still "Any" and
ends up being pickled. To avoid this issue this commit simply replaces
the TypeBoundsTree with a synthetic TypeTree with the proper type and
position, which is all that we need.1 parent 8ac046d commit 334dffd
File tree
2 files changed
+2
-4
lines changed- compiler
- src/dotty/tools/dotc/typer
- test/dotc
2 files changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1290 | 1290 | | |
1291 | 1291 | | |
1292 | 1292 | | |
1293 | | - | |
1294 | 1293 | | |
1295 | 1294 | | |
1296 | 1295 | | |
| |||
1302 | 1301 | | |
1303 | 1302 | | |
1304 | 1303 | | |
1305 | | - | |
| 1304 | + | |
1306 | 1305 | | |
| 1306 | + | |
1307 | 1307 | | |
1308 | | - | |
1309 | 1308 | | |
1310 | 1309 | | |
1311 | 1310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
0 commit comments