Commit 5bc95a0
committed
Widen implied objects to their parent types
If we have a situation like this:
```
type A
type B <: A
implied a for A
implied b for B
```
we should recognize `b` to be more specific than `a`. Before this
commit that was not the case, since `a: A$`, `b: B$` and `B$` is not
a subtype of `A$`.1 parent 3361d44 commit 5bc95a0
File tree
2 files changed
+16
-6
lines changed- compiler/src/dotty/tools/dotc
- transform
- typer
2 files changed
+16
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
1332 | 1333 | | |
1333 | 1334 | | |
1334 | 1335 | | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
1335 | 1339 | | |
1336 | 1340 | | |
1337 | 1341 | | |
| |||
1347 | 1351 | | |
1348 | 1352 | | |
1349 | 1353 | | |
1350 | | - | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
1351 | 1360 | | |
1352 | 1361 | | |
1353 | 1362 | | |
| |||
1375 | 1384 | | |
1376 | 1385 | | |
1377 | 1386 | | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
| 1387 | + | |
1383 | 1388 | | |
1384 | 1389 | | |
1385 | 1390 | | |
| |||
0 commit comments