Skip to content

Commit

Permalink
just restrict to dcEq
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Sep 28, 2024
1 parent d9a6037 commit 25aff8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1269,8 +1269,8 @@ proc sameTypeAux(x, y: PType, c: var TSameTypeClosure): bool =
objects ie `type A[T] = SomeObject`
]#
# this is required by tunique_type but makes no sense really:
if x.kind == tyGenericInst and IgnoreTupleFields notin c.flags and
c.cmp != dcEqIgnoreDistinct and tyDistinct != y.kind:
if c.cmp == dcEq and x.kind == tyGenericInst and
IgnoreTupleFields notin c.flags and tyDistinct != y.kind:
let
lhs = x.skipGenericAlias
rhs = y.skipGenericAlias
Expand Down

0 comments on commit 25aff8b

Please sign in to comment.