Commit 44a89c9
committed
Fix #6822: Fix self type handling for opaque types in classes
Two problems fixed:
- selfInfo's can be NoType, so need to use the selfType as a refinement parent.
- selfTypes for classes can be conjunctions of given self type and underlying type,
so need to use givenselfType to extract the opaque alias.1 parent a8b9b78 commit 44a89c9
File tree
2 files changed
+6
-2
lines changed- compiler/src/dotty/tools/dotc/core
- tests/pos
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
| 447 | + | |
447 | 448 | | |
448 | 449 | | |
449 | 450 | | |
| |||
1177 | 1178 | | |
1178 | 1179 | | |
1179 | 1180 | | |
1180 | | - | |
| 1181 | + | |
1181 | 1182 | | |
1182 | 1183 | | |
1183 | 1184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments