* Fix #14647 * Correct fix * Typo and add test * For real now :p
This commit is contained in:
parent
037990bc78
commit
394a56650a
3 changed files with 12 additions and 9 deletions
|
|
@ -189,8 +189,8 @@ proc newProc*(prc: PSym, module: BModule): BProc =
|
|||
new(result)
|
||||
result.prc = prc
|
||||
result.module = module
|
||||
if prc != nil: result.options = prc.options
|
||||
else: result.options = module.config.options
|
||||
result.options = if prc != nil: prc.options
|
||||
else: module.config.options
|
||||
newSeq(result.blocks, 1)
|
||||
result.nestedTryStmts = @[]
|
||||
result.finallySafePoints = @[]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue