fixes #5729
This commit is contained in:
parent
759a586b19
commit
5018f6fa15
1 changed files with 1 additions and 1 deletions
|
|
@ -517,7 +517,7 @@ proc propagateEffects(tracked: PEffects, n: PNode, s: PSym) =
|
|||
proc procVarcheck(n: PNode) =
|
||||
if n.kind in nkSymChoices:
|
||||
for x in n: procVarCheck(x)
|
||||
elif n.kind == nkSym and n.sym.magic != mNone:
|
||||
elif n.kind == nkSym and n.sym.magic != mNone and n.sym.kind in routineKinds:
|
||||
localError(n.info, errXCannotBePassedToProcVar, n.sym.name.s)
|
||||
|
||||
proc notNilCheck(tracked: PEffects, n: PNode, paramType: PType) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue