diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-04-24 10:00:53 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-04-24 10:00:53 +0200 |
commit | 1aede6d31136b7932c1e144e0476ff8dd96ecb1f (patch) | |
tree | 9248fe083f42d5f8a1c3f64268e7093037b4e1fd /compiler | |
parent | 7cba41db2396e3ec9b13f0ba71148ec856dcf8f8 (diff) | |
parent | 34e253bf34b7e407792cebb9be7872c9daf572f6 (diff) | |
download | Nim-1aede6d31136b7932c1e144e0476ff8dd96ecb1f.tar.gz |
Merge branch 'devel' of github.com:nim-lang/Nim into devel
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) = |