summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-04-02 14:55:32 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-04-02 14:55:45 +0200
commiteaca62f3310404e38fefc81ca6cae6466951cbff (patch)
treef125be5f721dc702e159d0a88fe647e476588ac6
parentd337e4a9327c19c144fe5ddd917b92ce6ea7fc0f (diff)
downloadNim-eaca62f3310404e38fefc81ca6cae6466951cbff.tar.gz
make tests green again
-rw-r--r--compiler/sighashes.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sighashes.nim b/compiler/sighashes.nim
index d7e80b342..f88e45dbe 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)