new len(openarray) implementation

This commit is contained in:
Araq 2011-12-31 18:15:20 +01:00
commit 0d8e6dda69
4 changed files with 22 additions and 5 deletions

View file

@ -512,7 +512,7 @@ proc typeSectionRightSidePass(c: PContext, n: PNode) =
# symbol lookup needs to be done here.
openScope(c.tab)
pushOwner(s)
s.typ.kind = tyGenericBody
if s.magic == mNone: s.typ.kind = tyGenericBody
if s.typ.containerID != 0:
InternalError(a.info, "semTypeSection: containerID")
s.typ.containerID = s.typ.id