When unpacking tuples in var/let declarations a part of the tuple can now
be discarded using a single underscore.
This commit is contained in:
Dominik Picheta 2015-03-31 00:39:23 +01:00
commit b38eb2e2a8
8 changed files with 39 additions and 6 deletions

View file

@ -20,6 +20,7 @@ proc considerQuotedIdent*(n: PNode): PIdent =
case n.kind
of nkIdent: result = n.ident
of nkSym: result = n.sym.name
of nkUnderscore: result = getIdent"_"
of nkAccQuoted:
case n.len
of 0: