Commit cea08f8
committed
Fix #7383: Don't include nested classes in class bounds
When computing the class bound in an avoid, we approximate
members by refinements. But if the member itself is a class,
we cannot refine with Classinfo type.
The current fix is to give up in this case and not refine
anything. We could try to refine with an abstract type, but
in that case we have to be careful with F-bounds.1 parent 754fa51 commit cea08f8
File tree
2 files changed
+18
-4
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/pos
2 files changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
66 | | - | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments