fixes #1039
This commit is contained in:
parent
105a0616a9
commit
c45e89b486
1 changed files with 1 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ proc semGenericStmt(c: PContext, n: PNode,
|
|||
of nkProcDef, nkMethodDef, nkConverterDef, nkMacroDef, nkTemplateDef,
|
||||
nkIteratorDef, nkLambdaKinds:
|
||||
checkSonsLen(n, bodyPos + 1)
|
||||
if n.kind notin nkLambdaKinds:
|
||||
if n.sons[namePos].kind != nkEmpty:
|
||||
addTempDecl(c, getIdentNode(n.sons[0]), skProc)
|
||||
openScope(c)
|
||||
n.sons[genericParamsPos] = semGenericStmt(c, n.sons[genericParamsPos],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue