aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-08-25 16:56:06 +0200
committerMartin Odersky <odersky@gmail.com>2016-09-19 11:07:43 +0200
commit7062b90eec9f63aef9023401ea8ca0acd524e0d6 (patch)
tree9fa67a94c4c4969eee451b84b1e62b8ce03530d4 /src/dotty/tools/dotc/core/SymDenotations.scala
parent75358be7265a067e603bd95d422ca8edc0bdaeb7 (diff)
downloaddotty-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.scala1
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 {