attempt to make tests green again
This commit is contained in:
parent
f2222316bd
commit
ec0f982ed4
5 changed files with 40 additions and 21 deletions
|
|
@ -22,7 +22,7 @@ proc genVarTuple(p: BProc, n: PNode) =
|
|||
var t = tup.t
|
||||
for i in countup(0, L-3):
|
||||
var v = n.sons[i].sym
|
||||
if sfGlobal in v.flags:
|
||||
if sfGlobal in v.flags and v.kind != skForVar:
|
||||
assignGlobalVar(p, v)
|
||||
genObjectInit(p, cpsInit, v.typ, v.loc, true)
|
||||
else:
|
||||
|
|
@ -47,7 +47,7 @@ proc loadInto(p: BProc, le, ri: PNode, a: var TLoc) {.inline.} =
|
|||
proc genSingleVar(p: BProc, a: PNode) =
|
||||
var v = a.sons[0].sym
|
||||
var immediateAsgn = a.sons[2].kind != nkEmpty
|
||||
if sfGlobal in v.flags:
|
||||
if sfGlobal in v.flags and v.kind != skForVar:
|
||||
assignGlobalVar(p, v)
|
||||
genObjectInit(p, cpsInit, v.typ, v.loc, true)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue