Revert "fix tforwardgeneric"

This reverts commit d82a032566.
This commit is contained in:
Araq 2013-05-27 23:18:15 +02:00
commit e3f93241c3
4 changed files with 6 additions and 8 deletions

View file

@ -125,6 +125,8 @@ proc fixupInstantiatedSymbols(c: PContext, s: PSym) =
openScope(c)
var n = oldPrc.ast
n.sons[bodyPos] = copyTree(s.getBody)
if n.sons[paramsPos].kind != nkEmpty:
addParams(c, oldPrc.typ.n, oldPrc.kind)
instantiateBody(c, n, oldPrc)
closeScope(c)
popInfoContext()