summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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)