mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
fixes #8893
(cherry picked from commit 81b2ae747e)
This commit is contained in:
@@ -874,7 +874,7 @@ proc gproc(g: var TSrcGen, n: PNode) =
|
||||
if renderNoPragmas notin g.flags:
|
||||
gsub(g, n[pragmasPos])
|
||||
if renderNoBody notin g.flags:
|
||||
if n[bodyPos].kind != nkEmpty:
|
||||
if n.len > bodyPos and n[bodyPos].kind != nkEmpty:
|
||||
put(g, tkSpaces, Space)
|
||||
putWithSpace(g, tkEquals, "=")
|
||||
indentNL(g)
|
||||
|
||||
Reference in New Issue
Block a user