mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 22:35:24 +00:00
small bugfix for the AST renderer
This commit is contained in:
@@ -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])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user