parent
3f00a738db
commit
61c85e034d
2 changed files with 11 additions and 0 deletions
|
|
@ -728,6 +728,9 @@ proc p(n: PNode; c: var Con; s: var Scope; mode: ProcessMode): PNode =
|
||||||
for i in ord(n.kind in {nkObjConstr, nkClosure})..<n.len:
|
for i in ord(n.kind in {nkObjConstr, nkClosure})..<n.len:
|
||||||
if n[i].kind == nkExprColonExpr:
|
if n[i].kind == nkExprColonExpr:
|
||||||
result[i][1] = p(n[i][1], c, s, m)
|
result[i][1] = p(n[i][1], c, s, m)
|
||||||
|
elif n[i].kind == nkRange:
|
||||||
|
result[i][0] = p(n[i][0], c, s, m)
|
||||||
|
result[i][1] = p(n[i][1], c, s, m)
|
||||||
else:
|
else:
|
||||||
result[i] = p(n[i], c, s, m)
|
result[i] = p(n[i], c, s, m)
|
||||||
if mode == normal and isRefConstr:
|
if mode == normal and isRefConstr:
|
||||||
|
|
|
||||||
|
|
@ -43,3 +43,11 @@ proc varArg(lst: var seq[string]) =
|
||||||
var x = @["a", "b"]
|
var x = @["a", "b"]
|
||||||
varArg(x)
|
varArg(x)
|
||||||
echo x
|
echo x
|
||||||
|
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Issue #15286
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
import std/os
|
||||||
|
discard getFileInfo(".")
|
||||||
Loading…
Add table
Add a link
Reference in a new issue