small bugfix for the AST renderer
This commit is contained in:
parent
af70254c7b
commit
ef99a2cf15
1 changed files with 1 additions and 1 deletions
|
|
@ -802,7 +802,7 @@ proc doParamsAux(g: var TSrcGen, params: PNode) =
|
|||
gsemicolon(g, params, 1)
|
||||
put(g, tkParRi, ")")
|
||||
|
||||
if params.sons[0].kind != nkEmpty:
|
||||
if params.len > 0 and params.sons[0].kind != nkEmpty:
|
||||
putWithSpace(g, tkOpr, "->")
|
||||
gsub(g, params.sons[0])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue