From 50feb1f25b21e43ccbaf47e4204559b32b127993 Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Fri, 28 Jul 2023 01:45:28 -0700 Subject: [PATCH] try strVal --- questionable/withoutresult.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/questionable/withoutresult.nim b/questionable/withoutresult.nim index 34307b7..6295146 100644 --- a/questionable/withoutresult.nim +++ b/questionable/withoutresult.nim @@ -22,7 +22,7 @@ macro without*(condition, errorname, body: untyped): untyped = ## Used to place guards that ensure that a Result contains a value. ## Exposes error when Result does not contain a value. - let errorIdent = ident $errorname + let errorIdent = ident errorname.strVal # Nim's early symbol resolution might have picked up a symbol with the # same name as our error variable. We need to undo this to make sure that our