* fix #15286

* fix spacing
This commit is contained in:
cooldome 2020-09-10 11:40:39 +01:00 • committed by GitHub
commit 61c85e034d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -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:

View file

@ -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(".")