Commit afdc2d3
committed
Fix #3381: handle case of lub and glb of types with different kinds
When forming the lub and glb of two types with different numbers of type
parameters, this crashed provided neither parameter list was empty. We
now treat this analogous to the case where one of the types is a * type,
by applying both types to their parameter references.1 parent dbe71d6 commit afdc2d3
File tree
2 files changed
+13
-3
lines changed- compiler/src/dotty/tools/dotc/core
- tests/pos
2 files changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1427 | 1427 | | |
1428 | 1428 | | |
1429 | 1429 | | |
| 1430 | + | |
1430 | 1431 | | |
1431 | 1432 | | |
1432 | | - | |
| 1433 | + | |
1433 | 1434 | | |
1434 | | - | |
1435 | | - | |
| 1435 | + | |
| 1436 | + | |
1436 | 1437 | | |
1437 | 1438 | | |
1438 | 1439 | | |
| |||
1442 | 1443 | | |
1443 | 1444 | | |
1444 | 1445 | | |
| 1446 | + | |
1445 | 1447 | | |
1446 | 1448 | | |
1447 | 1449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments