Implements #2154.
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:
parent
3751019823
commit
b38eb2e2a8
8 changed files with 39 additions and 6 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue