fixes #4593
This commit is contained in:
parent
57b8664a0c
commit
dd84dc85d0
1 changed files with 1 additions and 1 deletions
|
|
@ -532,7 +532,7 @@ proc isOwnedProcVar(n: PNode; owner: PSym): bool =
|
||||||
proc trackOperand(tracked: PEffects, n: PNode, paramType: PType) =
|
proc trackOperand(tracked: PEffects, n: PNode, paramType: PType) =
|
||||||
let a = skipConvAndClosure(n)
|
let a = skipConvAndClosure(n)
|
||||||
let op = a.typ
|
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
|
internalAssert op.n.sons[0].kind == nkEffectList
|
||||||
var effectList = op.n.sons[0]
|
var effectList = op.n.sons[0]
|
||||||
let s = n.skipConv
|
let s = n.skipConv
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue