From 4a74d65e174de60b97eb2333c8865365a02998d3 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Tue, 9 Jan 2024 13:50:23 +0100 Subject: [PATCH] Mark generated error variable explicitly as {.gensym.} Co-Authored-By: Jaremy Creechley --- questionable/withoutresult.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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