diff options
-rw-r--r-- | compiler/sempass2.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index 67de3217a..f2a6a7891 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -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] |