aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Denotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-04-03 14:56:29 +0200
committerMartin Odersky <odersky@gmail.com>2016-04-03 14:56:29 +0200
commitf5c220082048f9a7d67548a5619395f97139f088 (patch)
treef273df7e2a62a63c6bcac306b416717576fc839f /src/dotty/tools/dotc/core/Denotations.scala
parenta8b05409c901bb8db1fa0eed65fba14275ffe132 (diff)
downloaddotty-f5c220082048f9a7d67548a5619395f97139f088.tar.gz
dotty-f5c220082048f9a7d67548a5619395f97139f088.tar.bz2
dotty-f5c220082048f9a7d67548a5619395f97139f088.zip
Fix copy-paste error
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/Denotations.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala
index 8d5c965ce..542e89700 100644
--- a/src/dotty/tools/dotc/core/Denotations.scala
+++ b/src/dotty/tools/dotc/core/Denotations.scala
@@ -755,8 +755,8 @@ object Denotations {
* whether the replaced denotation is the only one in its cycle or not.
*/
private def insertInsteadOf(old: SingleDenotation): Unit = {
- var prev = current
- while (prev.nextInRun ne current) prev = prev.nextInRun
+ var prev = old
+ while (prev.nextInRun ne old) prev = prev.nextInRun
prev.nextInRun = this
this.nextInRun = old.nextInRun // order of previous two assignments is important!
old.validFor = Nowhere