summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-19 15:22:41 +0530
committerAndreas Rumpf <rumpf_a@web.de>2018-12-19 10:52:41 +0100
commit8e90ed06188ca27932028703b7f31640cdbfa99a (patch)
tree3bacbf604fe2d17b63da985173ede1c2956490b7 /lib
parent3f917c8d914fdd26023703acd046dc2b4a8105dd (diff)
downloadNim-8e90ed06188ca27932028703b7f31640cdbfa99a.tar.gz
Const tuple unpacking (#9964)
* tuple unpacking is now supported for consts

* Move nkConstTuple to the end of TNodeKind

* Add nnkConstTuple in macros.nim

* Fix Formatting
Diffstat (limited to 'lib')
-rw-r--r--lib/core/macros.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index f45ca3f82..7f0bda080 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -81,7 +81,8 @@ type
     nnkState,
     nnkBreakState,
     nnkFuncDef,
-    nnkTupleConstr
+    nnkTupleConstr,
+    nnkConstTuple
 
   NimNodeKinds* = set[NimNodeKind]
   NimTypeKind* = enum  # some types are no longer used, see ast.nim