fixes serious codegen regression that caused Nimble to misbehave

This commit is contained in:
Araq 2016-12-10 02:30:57 +01:00
commit 34143ee122
2 changed files with 48 additions and 1 deletions

View file

@ -63,7 +63,7 @@ proc genTraverseProc(c: var TTraversalClosure, accessor: Rope, typ: PType) =
var p = c.p
case typ.kind
of tyGenericInst, tyGenericBody, tyTypeDesc, tyAlias:
of tyGenericInst, tyGenericBody, tyTypeDesc, tyAlias, tyDistinct:
genTraverseProc(c, accessor, lastSon(typ))
of tyArray:
let arraySize = lengthOrd(typ.sons[0])