Commit b0e4ca0
committed
Freeze constraints in a condition check of maximiseType
Not doing so, in a context where GADT inferrence is enabled, such as in
TypeOps.refineUsingParent, leads to false inferrences.
Doing so, and removing the previous fix for #15967, fixes the regression
in #16339, and keeps #15967 as well as #16123 (which is somewhat
related) fixed.1 parent d3070f6 commit b0e4ca0
File tree
3 files changed
+8
-5
lines changed- compiler/src/dotty/tools/dotc
- core
- typer
- tests/pos
3 files changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | 884 | | |
889 | 885 | | |
890 | 886 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
| 420 | + | |
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments