From 8e90ed06188ca27932028703b7f31640cdbfa99a Mon Sep 17 00:00:00 2001 From: Neelesh Chandola Date: Wed, 19 Dec 2018 15:22:41 +0530 Subject: 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 --- lib/core/macros.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/core') 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 -- cgit 1.4.1-2-gfad0