diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-08-10 11:19:27 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-08-10 11:19:27 +0200 |
commit | dd84dc85d067f0936746b8a80e7f249611b68da2 (patch) | |
tree | 7c970a80fff6e68431e0605685eb14266f29ee77 /compiler | |
parent | 57b8664a0c89788ea6ccdd8817905fff122a7c88 (diff) | |
download | Nim-dd84dc85d067f0936746b8a80e7f249611b68da2.tar.gz |
fixes #4593
Diffstat (limited to 'compiler')
-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 120c4c774..b12ab5e96 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -532,7 +532,7 @@ proc isOwnedProcVar(n: PNode; owner: PSym): bool = proc trackOperand(tracked: PEffects, n: PNode, paramType: PType) = let a = skipConvAndClosure(n) let op = a.typ - if op != nil and op.kind == tyProc and n.kind != nkNilLit: + if op != nil and op.kind == tyProc and n.skipConv.kind != nkNilLit: internalAssert op.n.sons[0].kind == nkEffectList var effectList = op.n.sons[0] let s = n.skipConv |