Commit 09b8754
committed
Make SkolemTypes immutable and non-recursive.
Since we now map the info of a SkolemType as part of mapping the SkolemType
itself, it follows that SkolemTypes can't recursively refer to themselves.
So `captureWildcards` in `Typer` avoids recursion now by using an approximating
substitution instead (I wonder now how we ever could live without approximating
substitutions!). This means that SkolemTypes don't need to be mutable anymore
since there is no fixed point to construct.1 parent 788fac8 commit 09b8754
File tree
2 files changed
+11
-19
lines changed- compiler/src/dotty/tools/dotc
- core
- typer
2 files changed
+11
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3618 | 3618 | | |
3619 | 3619 | | |
3620 | 3620 | | |
3621 | | - | |
3622 | | - | |
3623 | | - | |
3624 | | - | |
3625 | | - | |
3626 | | - | |
| 3621 | + | |
| 3622 | + | |
3627 | 3623 | | |
3628 | 3624 | | |
3629 | 3625 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2701 | 2701 | | |
2702 | 2702 | | |
2703 | 2703 | | |
2704 | | - | |
| 2704 | + | |
2705 | 2705 | | |
2706 | 2706 | | |
2707 | 2707 | | |
| |||
2712 | 2712 | | |
2713 | 2713 | | |
2714 | 2714 | | |
2715 | | - | |
2716 | | - | |
2717 | | - | |
2718 | | - | |
2719 | | - | |
2720 | | - | |
2721 | | - | |
2722 | | - | |
2723 | | - | |
2724 | | - | |
2725 | | - | |
2726 | | - | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
2727 | 2722 | | |
| 2723 | + | |
2728 | 2724 | | |
2729 | 2725 | | |
2730 | 2726 | | |
| |||
0 commit comments