Commit 4cb493a
committed
Allow for aut-updating of package members
Previously, an overwritten package member always got the denotation of the
new package, so package members always auto-updated, and we could not even
detect that they were no longer valid. This is a problem because it means that
TermRefs and TypeRefs pointing to overwritten members will not be updated.
We now do something less sweeping. A call to `current` will invoke `bringForward`
which will do the update if the `autoUpdatePackageMembers` config flag is set.
After the call to `current` the old symbol will be considered valid, which is a
potential problems because we then have two valid symbols pointing to the same
denotations. So it would be best if we could set `autoUpdatePackageMembers = false`.1 parent 58615af commit 4cb493a
File tree
2 files changed
+6
-1
lines changed- compiler/src/dotty/tools/dotc
- config
- core
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
782 | | - | |
| 782 | + | |
783 | 783 | | |
784 | 784 | | |
785 | 785 | | |
| |||
0 commit comments