overloading of '=' works

This commit is contained in:
Araq 2015-04-06 23:20:41 +02:00
commit 05e39cf6ad
9 changed files with 147 additions and 6 deletions

View file

@ -190,6 +190,7 @@ proc liftBodyAux(c: var TLiftCtx; t: PType; body, x, y: PNode) =
of tyArrayConstr, tyArray, tySequence:
if tfHasAsgn in t.flags:
if t.kind == tySequence:
# XXX add 'nil' handling here
body.add newSeqCall(c.c, x, y)
let i = declareCounter(c, body, firstOrd(t))
let whileLoop = genWhileLoop(c, i, x)