Skip to content

Commit 394d8d0

Browse files
committed
Fix problem with TermRef equality.
Equality was not symmetric between TermRefs and TermrefWithSignatures.
1 parent c372bd1 commit 394d8d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dotty/tools/dotc/core/Types.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,8 @@ object Types {
13391339
case that: NamedType =>
13401340
this.name == that.name &&
13411341
this.prefix == that.prefix &&
1342-
!that.isInstanceOf[TermRefWithSignature]
1342+
!that.isInstanceOf[TermRefWithSignature] &&
1343+
!that.isInstanceOf[WithFixedSym]
13431344
case _ =>
13441345
false
13451346
}

0 commit comments

Comments
 (0)