make tests green again

This commit is contained in:
Araq
2019-04-10 08:41:38 +02:00
parent 4974f999c3
commit 6617b8deee

View File

@@ -708,7 +708,7 @@ proc track(tracked: PEffects, n: PNode) =
if getConstExpr(tracked.ownerModule, n, tracked.graph) != nil:
return
if n.typ != nil:
if tracked.owner.kind != skMacro:
if tracked.owner.kind != skMacro and n.typ.skipTypes(abstractVar).kind != tyOpenArray:
createTypeBoundOps(tracked.c, n.typ, n.info)
if a.kind == nkCast and a[1].typ.kind == tyProc:
a = a[1]