containerID is no longer needed for generics

This commit is contained in:
Zahary Karadjov 2013-03-01 12:12:53 +02:00
commit 0774af169b
6 changed files with 4 additions and 19 deletions

View file

@ -532,9 +532,6 @@ proc typeSectionRightSidePass(c: PContext, n: PNode) =
openScope(c.tab)
pushOwner(s)
if s.magic == mNone: s.typ.kind = tyGenericBody
if s.typ.containerID != 0:
InternalError(a.info, "semTypeSection: containerID")
s.typ.containerID = s.typ.id
# XXX for generic type aliases this is not correct! We need the
# underlying Id really:
#