parent
26acc97864
commit
26bcf18f91
2 changed files with 11 additions and 1 deletions
|
|
@ -1479,7 +1479,7 @@ proc checkCanEval(c: PCtx; n: PNode) =
|
|||
# proc foo() = var x ...
|
||||
let s = n.sym
|
||||
if {sfCompileTime, sfGlobal} <= s.flags: return
|
||||
if s.importcCondVar: return
|
||||
if compiletimeFFI in c.config.features and s.importcCondVar: return
|
||||
if s.kind in {skVar, skTemp, skLet, skParam, skResult} and
|
||||
not s.isOwnedBy(c.prc.sym) and s.owner != c.module and c.mode != emRepl:
|
||||
# little hack ahead for bug #12612: assume gensym'ed variables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue