Revert "Revert "fix tforwardgeneric""

This reverts commit e3f93241c3.
This commit is contained in:
Zahary Karadjov 2013-08-19 01:29:47 +03:00
commit fc858927f0
4 changed files with 8 additions and 6 deletions

View file

@ -125,8 +125,6 @@ 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()