Commit 5cee25b
committed
Fix crash on implicit search involving higher-kinded types
Previously, the test case crashed because it tried to create an
AndType of `[X] =>> <?>` and `[X] =>> Any`, but AndTypes can only
contain value types. Fixed by moving the AndType creation after having
recursively simplified the bounds with `apply` which always produces a
value type.1 parent 8a4c442 commit 5cee25b
File tree
2 files changed
+9
-6
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/pos
2 files changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
684 | 683 | | |
685 | 684 | | |
686 | 685 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments