From eaca62f3310404e38fefc81ca6cae6466951cbff Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 2 Apr 2019 14:55:32 +0200 Subject: [PATCH] make tests green again --- compiler/sighashes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/sighashes.nim b/compiler/sighashes.nim index d7e80b3426..f88e45dbe4 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, CoConsiderOwned} * flags == {CoType}: + if {CoType, CoConsiderOwned} * flags == {CoType} or t.sym == nil: c.hashType t.lastSon, flags else: c.hashSym(t.sym)