allowing multiple definitions of templates
This commit is contained in:
parent
e5bd3b5b97
commit
c45b714dfb
2 changed files with 13 additions and 12 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#
|
||||
|
||||
## this module does the semantic checking of statements
|
||||
# included from sem.nim
|
||||
|
||||
proc semCommand(c: PContext, n: PNode): PNode =
|
||||
result = semExprNoType(c, n)
|
||||
|
|
@ -690,8 +691,6 @@ proc semProcAux(c: PContext, n: PNode, kind: TSymKind,
|
|||
n.sons[genericParamsPos] = gp
|
||||
# check for semantics again:
|
||||
semParamList(c, n.sons[ParamsPos], nil, s)
|
||||
# XXX: obsoleted - happens in semParamList
|
||||
# addParams(c, s.typ.n)
|
||||
else:
|
||||
s.typ = newTypeS(tyProc, c)
|
||||
addSon(s.typ, nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue