parent
fde17b159f
commit
b8bcf236dd
2 changed files with 32 additions and 1 deletions
|
|
@ -382,7 +382,13 @@ proc genSingleVar(p: BProc, v: PSym; vn, value: PNode) =
|
|||
|
||||
proc genSingleVar(p: BProc, a: PNode) =
|
||||
let v = a[0].sym
|
||||
if sfCompileTime in v.flags: return
|
||||
if sfCompileTime in v.flags:
|
||||
# fix issue #12640
|
||||
# {.global, compileTime.} pragma in proc
|
||||
if sfGlobal in v.flags and p.prc != nil and p.prc.kind == skProc:
|
||||
discard
|
||||
else:
|
||||
return
|
||||
genSingleVar(p, v, a[0], a[2])
|
||||
|
||||
proc genClosureVar(p: BProc, a: PNode) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue