File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -3598,6 +3598,8 @@ object Types {
3598
3598
// @!!! we are not systematic when we do referntial vs structural comparisons.
3599
3599
// Do referential everywhere?
3600
3600
override def equals (that : Any ): Boolean = that match {
3601
+ case that : TypeAlias =>
3602
+ false
3601
3603
case that : TypeBounds =>
3602
3604
(this .lo eq that.lo) && (this .hi eq that.hi)
3603
3605
case _ =>
@@ -3615,6 +3617,13 @@ object Types {
3615
3617
if (alias eq this .alias) this else TypeAlias (alias)
3616
3618
3617
3619
override def computeHash = doHash(alias)
3620
+
3621
+ override def equals (that : Any ): Boolean = that match {
3622
+ case that : TypeAlias =>
3623
+ this .alias eq that.alias
3624
+ case _ =>
3625
+ false
3626
+ }
3618
3627
}
3619
3628
3620
3629
class CachedTypeAlias (alias : Type ) extends TypeAlias (alias)
You can’t perform that action at this time.
0 commit comments