Mark generated error variable explicitly as {.gensym.}
Co-Authored-By: Jaremy Creechley <creechley@gmail.com>
This commit is contained in:
parent
672248f431
commit
4a74d65e17
|
@ -34,7 +34,7 @@ macro without*(condition, errorname, body: untyped): untyped =
|
|||
let body = body.undoSymbolResolution(errorIdent)
|
||||
|
||||
quote do:
|
||||
var error: ref CatchableError
|
||||
var error {.gensym.}: ref CatchableError
|
||||
|
||||
without captureBindError(error, `condition`):
|
||||
template `errorIdent`: ref CatchableError = error
|
||||
|
|
Loading…
Reference in New Issue