diff options
author | Martin Odersky <odersky@gmail.com> | 2015-08-19 14:12:17 -0700 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-08-19 14:12:17 -0700 |
commit | 2cbf29e40af2494cc4a685b6c1e683d95bde95af (patch) | |
tree | 03349c58389edc999ada9fea220adbd29b910ccd /src/dotty/tools/dotc/core/Denotations.scala | |
parent | 4ff06368cda585e3a2d04af084a8fe09662e55f0 (diff) | |
download | dotty-2cbf29e40af2494cc4a685b6c1e683d95bde95af.tar.gz dotty-2cbf29e40af2494cc4a685b6c1e683d95bde95af.tar.bz2 dotty-2cbf29e40af2494cc4a685b6c1e683d95bde95af.zip |
Tweak to installAfter
installAfter now overwrites denotaton also when the first denotation of a symbol is defined
after the current phase. Previously, a new denotation with a last valid phase before a first
valid phase was created.
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Denotations.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala index fc97fb32b..16a151e89 100644 --- a/src/dotty/tools/dotc/core/Denotations.scala +++ b/src/dotty/tools/dotc/core/Denotations.scala @@ -680,7 +680,7 @@ object Denotations { // println(s"installing $this after $phase/${phase.id}, valid = ${current.validFor}") // printPeriods(current) this.validFor = Period(ctx.runId, targetId, current.validFor.lastPhaseId) - if (current.validFor.firstPhaseId == targetId) + if (current.validFor.firstPhaseId >= targetId) replaceDenotation(current) else { // insert this denotation after current |