summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-08-04 01:29:49 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-08-04 01:37:41 +0200
commite92ccff57a81bb5274d5736ede910d3d989275c4 (patch)
tree4da7205941f0bcb5ba25903acca76cd9e844e744 /compiler
parent7ac0b20339eb741fe8c242278cb9eca2534c735c (diff)
downloadNim-e92ccff57a81bb5274d5736ede910d3d989275c4.tar.gz
fixes #4550
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semtypes.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim
index a529e80c0..9d00c06ca 100644
--- a/compiler/semtypes.nim
+++ b/compiler/semtypes.nim
@@ -393,6 +393,7 @@ proc semTuple(c: PContext, n: PNode, prev: PType): PType =
         addSon(result.n, newSymNode(field))
         addSonSkipIntLit(result, typ)
       if gCmd == cmdPretty: styleCheckDef(a.sons[j].info, field)
+  if result.n.len == 0: result.n = nil
 
 proc semIdentVis(c: PContext, kind: TSymKind, n: PNode,
                  allowed: TSymFlags): PSym =