diff --git a/questionable/withoutresult.nim b/questionable/withoutresult.nim index 786cc49..9fe6772 100644 --- a/questionable/withoutresult.nim +++ b/questionable/withoutresult.nim @@ -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