This commit is contained in:
Andreas Rumpf 2017-11-02 15:39:44 +01:00
commit 30b098fcaf
6 changed files with 10 additions and 8 deletions

View file

@ -1004,7 +1004,7 @@ proc checkForMetaFields(n: PNode) =
case t.kind
of tySequence, tySet, tyArray, tyOpenArray, tyVar, tyPtr, tyRef,
tyProc, tyGenericInvocation, tyGenericInst, tyAlias:
let start = ord(t.kind in {tyGenericInvocation, tyGenericInst})
let start = int ord(t.kind in {tyGenericInvocation, tyGenericInst})
for i in start ..< t.sons.len:
checkMeta(t.sons[i])
else: