fix regressions affecting the echo magic and the creating of rod files

the markAndSweep GC was not responsible for the regressions so
this commit restores its use
This commit is contained in:
Zahary Karadjov 2013-09-07 11:44:11 +03:00
commit f05ac0cb23
3 changed files with 5 additions and 3 deletions

View file

@ -608,7 +608,9 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode,
if genericParams.sons[i].sym.name.id == finalTypId.id:
return genericParams.sons[i].typ
var s = newSym(skType, finalTypId, typeClass.sym, info)
let owner = if typeClass.sym != nil: typeClass.sym
else: getCurrOwner()
var s = newSym(skType, finalTypId, owner, info)
if typId == nil: s.flags.incl(sfAnon)
s.linkTo(typeClass)
s.position = genericParams.len