diff options
author | Araq <rumpf_a@web.de> | 2019-04-10 08:41:38 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-04-10 08:41:38 +0200 |
commit | 6617b8deee321c6baf8844ac59ebab84f325b6a0 (patch) | |
tree | 589886d977397e1a73a9b49c25ee98da5ab27d14 | |
parent | 4974f999c36627c21a001c8acf7d036f80d0121f (diff) | |
download | Nim-6617b8deee321c6baf8844ac59ebab84f325b6a0.tar.gz |
make tests green again
-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] |