diff options
author | Araq <rumpf_a@web.de> | 2014-11-28 09:32:37 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-11-28 09:32:37 +0100 |
commit | c45e89b486dda811ba94f4a55509d6820596be1b (patch) | |
tree | 2422839827e1e7dc6b655e98f879170031c1bcca | |
parent | 105a0616a9da7c9c85adfa488a1db42eb17daafb (diff) | |
download | Nim-c45e89b486dda811ba94f4a55509d6820596be1b.tar.gz |
fixes #1039
-rw-r--r-- | compiler/semgnrc.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semgnrc.nim b/compiler/semgnrc.nim index 0fa16497c..723789a31 100644 --- a/compiler/semgnrc.nim +++ b/compiler/semgnrc.nim @@ -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], |