aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-01-19 15:53:07 +0100
committerMartin Odersky <odersky@gmail.com>2016-01-19 16:44:30 +0100
commita93cdf4077003dad3428a4af34ba30c3d812dc78 (patch)
treec18b1e3e0f825aecc50ed1192f5ba8d0c7d6932d /src/dotty/tools/dotc/core/SymDenotations.scala
parent1aa8fbb56e95d7aea04b338d3edf7d53077b804a (diff)
downloaddotty-a93cdf4077003dad3428a4af34ba30c3d812dc78.tar.gz
dotty-a93cdf4077003dad3428a4af34ba30c3d812dc78.tar.bz2
dotty-a93cdf4077003dad3428a4af34ba30c3d812dc78.zip
Avoid repeated evaluations of parentIsYounger.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index d384bd5c4..d1abfbfb6 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -1250,8 +1250,8 @@ object SymDenotations {
if (parentIsYounger) {
incremental.println(s"parents of $this are invalid; symbol id = ${symbol.id}, copying ...\n")
invalidateInheritedInfo()
- firstRunId = ctx.runId
}
+ firstRunId = ctx.runId
this
}