diff options
author | Martin Odersky <odersky@gmail.com> | 2016-08-25 16:56:06 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-09-19 11:07:43 +0200 |
commit | 7062b90eec9f63aef9023401ea8ca0acd524e0d6 (patch) | |
tree | 9fa67a94c4c4969eee451b84b1e62b8ce03530d4 /src/dotty/tools/dotc/core/SymDenotations.scala | |
parent | 75358be7265a067e603bd95d422ca8edc0bdaeb7 (diff) | |
download | dotty-7062b90eec9f63aef9023401ea8ca0acd524e0d6.tar.gz dotty-7062b90eec9f63aef9023401ea8ca0acd524e0d6.tar.bz2 dotty-7062b90eec9f63aef9023401ea8ca0acd524e0d6.zip |
Avoid stale symbol errors for Scala-2 compiled symbols
Wehn compiling dotty repeatedly using dotc.Bench, we got a stale symbol
error involving an outer field of a Scala class. These can always be assumed
to be current, as we would not think to recompile Scala2 classes mixed
with dotty classes in the same session (we'd need two concurrent
compilers for that).
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index be2e3d8fe..bedfb672f 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -56,6 +56,7 @@ trait SymDenotations { this: Context => stillValid(owner) && ( !owner.isClass || owner.isRefinementClass + || owner.is(Scala2x) || (owner.unforcedDecls.lookupAll(denot.name) contains denot.symbol) || denot.isSelfSym) } catch { |