diff options
author | Araq <rumpf_a@web.de> | 2017-04-19 15:20:46 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-04-19 15:20:46 +0200 |
commit | 5018f6fa15f60ddf26bc7ca347a38c29899aa3b3 (patch) | |
tree | 7629aa2b050232b44967ef49573f35ff8b17ce27 /compiler | |
parent | 759a586b19fbcb41639612a4d7ebc8c924a9a818 (diff) | |
download | Nim-5018f6fa15f60ddf26bc7ca347a38c29899aa3b3.tar.gz |
fixes #5729
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 ce7474966..96bdc6cba 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -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) = |