Commit 105e083
committed
Dealias less in OrderingConstraint.replace and AvoidMap
Basically if the transformation doesn't apply to the dealias type,
then return the original type instead of the dealiased one.
In general it's reduce dealiasing to a minimum when typing,
because it can affect type unification as shown in the tests.
Unfortunately this doesn't handle the case of a singleton type alias,
because `widenSingletons` also dealiases and the same fix doesn't work.1 parent afc6ce4 commit 105e083
File tree
5 files changed
+38
-6
lines changed- compiler/src/dotty/tools/dotc/core
- tests
- neg
- pos
5 files changed
+38
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
| 457 | + | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
455 | | - | |
| 454 | + | |
| 455 | + | |
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1430 | 1430 | | |
1431 | 1431 | | |
1432 | 1432 | | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
1433 | 1441 | | |
1434 | 1442 | | |
1435 | 1443 | | |
| |||
1478 | 1486 | | |
1479 | 1487 | | |
1480 | 1488 | | |
1481 | | - | |
| 1489 | + | |
1482 | 1490 | | |
1483 | | - | |
1484 | | - | |
| 1491 | + | |
1485 | 1492 | | |
1486 | 1493 | | |
1487 | 1494 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 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