diff options
author | Neelesh Chandola <neelesh.chandola@outlook.com> | 2018-12-19 15:22:41 +0530 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-12-19 10:52:41 +0100 |
commit | 8e90ed06188ca27932028703b7f31640cdbfa99a (patch) | |
tree | 3bacbf604fe2d17b63da985173ede1c2956490b7 /compiler/ast.nim | |
parent | 3f917c8d914fdd26023703acd046dc2b4a8105dd (diff) | |
download | Nim-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 'compiler/ast.nim')
-rw-r--r-- | compiler/ast.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim index 5f5f296cb..9ac27cb57 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -222,7 +222,8 @@ type nkState, # give a label to a code section (for iterators) nkBreakState, # special break statement for easier code generation nkFuncDef, # a func - nkTupleConstr # a tuple constructor + nkTupleConstr, # a tuple constructor + nkConstTuple # a ``const (a, b) = expr`` construct TNodeKinds* = set[TNodeKind] |