merged branch overloading-for-macros

This commit is contained in:
Zahary Karadjov 2012-03-19 12:06:38 +02:00
commit e43f8d842b
39 changed files with 366 additions and 218 deletions

View file

@ -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)