Commit acb3dba
authored
Fix superType of SuperType (#17574)
I am not quite sure about he previous definition of superType in
SuperType. I believe it's probably needed for something. But it's
clearly wrong if the `supertpe` argument does not have a symbol. We now
fall back to the default
```
def superType = underlying
```
in this case.
Fixes #17555File tree
2 files changed
+19
-1
lines changed- compiler/src/dotty/tools/dotc/core
- tests/run
2 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3026 | 3026 | | |
3027 | 3027 | | |
3028 | 3028 | | |
3029 | | - | |
| 3029 | + | |
| 3030 | + | |
3030 | 3031 | | |
3031 | 3032 | | |
3032 | 3033 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments