summary refs log tree commit diff stats
path: root/compiler/semtypinst.nim
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2014-02-14 23:57:10 +0000
committerDominik Picheta <dominikpicheta@googlemail.com>2014-02-14 23:57:10 +0000
commit66b0582a0bc20cdd428b3e7de86188f53e7a93b5 (patch)
tree8f9e531c6d6f2d197c86cc40a2aba897d3b81a7e /compiler/semtypinst.nim
parent2fa22078b83593b8a25d536cff18efa929d30016 (diff)
parent2b9311e9f185c5cb95a7ce70035efce63b4e6d89 (diff)
downloadNim-66b0582a0bc20cdd428b3e7de86188f53e7a93b5.tar.gz
Merge branch 'devel' into newasync
Diffstat (limited to 'compiler/semtypinst.nim')
-rw-r--r--compiler/semtypinst.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim
index a07d91241..73b618f46 100644
--- a/compiler/semtypinst.nim
+++ b/compiler/semtypinst.nim
@@ -153,6 +153,9 @@ proc replaceTypeVarsN(cl: var TReplTypeVars, n: PNode): PNode =
     discard
   of nkSym:
     result.sym = replaceTypeVarsS(cl, n.sym)
+    if result.sym.typ.kind == tyEmpty:
+      # don't add the 'void' field
+      result = newNode(nkRecList, n.info)
   of nkRecWhen:
     var branch: PNode = nil              # the branch to take
     for i in countup(0, sonsLen(n) - 1):