diff --git a/compiler/sighashes.nim b/compiler/sighashes.nim index 19175f3b3d..d7e80b3426 100644 --- a/compiler/sighashes.nim +++ b/compiler/sighashes.nim @@ -152,7 +152,7 @@ proc hashType(c: var MD5Context, t: PType; flags: set[ConsiderFlag]) = for i in countup(0, sonsLen(t) - 1): c.hashType t.sons[i], flags of tyDistinct: - if CoType in flags: + if {CoType, CoConsiderOwned} * flags == {CoType}: c.hashType t.lastSon, flags else: c.hashSym(t.sym)