cleanup of #4113
This commit is contained in:
parent
d3fe4a2db1
commit
a406ebbac9
2 changed files with 30 additions and 30 deletions
|
|
@ -125,7 +125,7 @@ proc mapTypeToAstX(t: PType; info: TLineInfo;
|
|||
of tyArrayConstr, tyArray:
|
||||
result = newNodeIT(nkBracketExpr, if t.n.isNil: info else: t.n.info, t)
|
||||
result.add atomicType("array")
|
||||
if inst:
|
||||
if inst and t.sons[0].kind == tyRange:
|
||||
var rng = newNodeX(nkInfix)
|
||||
rng.add newIdentNode(getIdent(".."), info)
|
||||
rng.add t.sons[0].n.sons[0].copyTree
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue