Merge branch 'devel' of https://github.com/Araq/Nimrod into devel

This commit is contained in:
Araq 2014-12-08 22:35:21 +01:00
commit 5979d35ab2
5 changed files with 41 additions and 8 deletions

View file

@ -1431,7 +1431,7 @@ proc genObjConstr(p: PProc, n: PNode, r: var TCompRes) =
r.res = toRope("{")
r.kind = resExpr
for i in countup(1, sonsLen(n) - 1):
if i > 0: app(r.res, ", ")
if i > 1: app(r.res, ", ")
var it = n.sons[i]
internalAssert it.kind == nkExprColonExpr
gen(p, it.sons[1], a)