fixes #1713
This commit is contained in:
parent
52ab2f86a8
commit
4180f59b27
5 changed files with 32 additions and 11 deletions
|
|
@ -712,7 +712,11 @@ proc gproc(g: var TSrcGen, n: PNode) =
|
|||
gpattern(g, n.sons[patternPos])
|
||||
let oldCheckAnon = g.checkAnon
|
||||
g.checkAnon = true
|
||||
gsub(g, n.sons[genericParamsPos])
|
||||
if renderNoBody in g.flags and n[miscPos].kind != nkEmpty and
|
||||
n[miscPos][1].kind != nkEmpty:
|
||||
gsub(g, n[miscPos][1])
|
||||
else:
|
||||
gsub(g, n.sons[genericParamsPos])
|
||||
g.checkAnon = oldCheckAnon
|
||||
gsub(g, n.sons[paramsPos])
|
||||
gsub(g, n.sons[pragmasPos])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue