parent
4c568734f4
commit
8873ec6084
2 changed files with 30 additions and 4 deletions
|
|
@ -2180,7 +2180,11 @@ proc genSetConstr(p: PProc, n: PNode, r: var TCompRes) =
|
|||
if it.kind == nkRange:
|
||||
gen(p, it[0], a)
|
||||
gen(p, it[1], b)
|
||||
r.res.addf("[$1, $2]", [a.res, b.res])
|
||||
|
||||
if it[0].typ.kind == tyBool:
|
||||
r.res.addf("$1, $2", [a.res, b.res])
|
||||
else:
|
||||
r.res.addf("[$1, $2]", [a.res, b.res])
|
||||
else:
|
||||
gen(p, it, a)
|
||||
r.res.add(a.res)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue