From 0774af169b44e5e2a67a880e694f2140b3c694da Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Fri, 1 Mar 2013 12:12:53 +0200 Subject: containerID is no longer needed for generics --- compiler/semstmts.nim | 3 --- 1 file changed, 3 deletions(-) (limited to 'compiler/semstmts.nim') diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index c38e2f3ad..9867c20be 100755 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -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: # -- cgit 1.4.1-2-gfad0