mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
@@ -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:
|
||||
if n[i].kind == nkExprColonExpr:
|
||||
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:
|
||||
result[i] = p(n[i], c, s, m)
|
||||
if mode == normal and isRefConstr:
|
||||
|
||||
@@ -43,3 +43,11 @@ proc varArg(lst: var seq[string]) =
|
||||
var x = @["a", "b"]
|
||||
varArg(x)
|
||||
echo x
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Issue #15286
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
import std/os
|
||||
discard getFileInfo(".")
|
||||
Reference in New Issue
Block a user