summary refs log tree commit diff stats
path: root/compiler/trees.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-04-13 17:06:46 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-13 17:45:58 +0200
commit47335aab4148b2cd5b28cd3012d6d6e0a0c82db7 (patch)
tree33c87e807f22b59d61dbe2aa0f42430c0d0399d3 /compiler/trees.nim
parentab426faa226f7041c60e671ad2a3ba79b46ee1c0 (diff)
downloadNim-47335aab4148b2cd5b28cd3012d6d6e0a0c82db7.tar.gz
introduce nkTupleConstr AST node for unary tuple construction; breaking change
Diffstat (limited to 'compiler/trees.nim')
-rw-r--r--compiler/trees.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/trees.nim b/compiler/trees.nim
index f69108942..fb523de9d 100644
--- a/compiler/trees.nim
+++ b/compiler/trees.nim
@@ -97,7 +97,7 @@ proc isDeepConstExpr*(n: PNode): bool =
     result = true
   of nkExprEqExpr, nkExprColonExpr, nkHiddenStdConv, nkHiddenSubConv:
     result = isDeepConstExpr(n.sons[1])
-  of nkCurly, nkBracket, nkPar, nkObjConstr, nkClosure, nkRange:
+  of nkCurly, nkBracket, nkPar, nkTupleConstr, nkObjConstr, nkClosure, nkRange:
     for i in ord(n.kind == nkObjConstr) ..< n.len:
       if not isDeepConstExpr(n.sons[i]): return false
     if n.typ.isNil: result = true