Commit c74f710
committed
Fix #6989: Make sure scalacLinkedClass finds companion when unpickling
scalacLinkedClass uses unforcedDecls which might miss a companion object when
unpickling. I tried to make scalacLinekdClass stricter, but ran into
problems. It turns out that it is finely balanced as it is.
The fix is to make sure the owner is completed before calling scalacLinkedClass
from an unpickler. I trued to do the same for the Scala2Unpickler but that ran
again into problems. So this is quite the mine-field...1 parent 840a122 commit c74f710
File tree
3 files changed
+18
-0
lines changed- compiler/src/dotty/tools/dotc/core/tasty
- tests/pos/i6989
3 files changed
+18
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
| 804 | + | |
804 | 805 | | |
805 | 806 | | |
806 | 807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments