make tests green again

This commit is contained in:
Andreas Rumpf
2019-04-02 14:55:32 +02:00
parent d337e4a932
commit eaca62f331

View File

@@ -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, CoConsiderOwned} * flags == {CoType}:
if {CoType, CoConsiderOwned} * flags == {CoType} or t.sym == nil:
c.hashType t.lastSon, flags
else:
c.hashSym(t.sym)