aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Types.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2014-09-23 14:07:35 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2014-09-23 14:07:35 +0200
commit58ae0d03a13fbe159120c9356884f96dda37d575 (patch)
treea5f786e342cbecfe0c483546ba84de97be63ffc3 /src/dotty/tools/dotc/core/Types.scala
parent2b52e9ccbf0427f7b9e4d5f61f1df8b4fb5d3f24 (diff)
downloaddotty-58ae0d03a13fbe159120c9356884f96dda37d575.tar.gz
dotty-58ae0d03a13fbe159120c9356884f96dda37d575.tar.bz2
dotty-58ae0d03a13fbe159120c9356884f96dda37d575.zip
Fix errorneus equality between TermRef and WithFixedSym
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
-rw-r--r--src/dotty/tools/dotc/core/Types.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala
index bbec70404..59adf764e 100644
--- a/src/dotty/tools/dotc/core/Types.scala
+++ b/src/dotty/tools/dotc/core/Types.scala
@@ -1335,7 +1335,8 @@ object Types {
case that: NamedType =>
this.name == that.name &&
this.prefix == that.prefix &&
- !that.isInstanceOf[TermRefWithSignature]
+ !that.isInstanceOf[TermRefWithSignature] &&
+ !that.isInstanceOf[WithFixedSym]
case _ =>
false
}