diff options
Diffstat (limited to 'tests/vm/tanonproc.nim')
-rw-r--r-- | tests/vm/tanonproc.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/vm/tanonproc.nim b/tests/vm/tanonproc.nim index c5cb57d75..1176c104e 100644 --- a/tests/vm/tanonproc.nim +++ b/tests/vm/tanonproc.nim @@ -4,7 +4,7 @@ discard """ # bug #3561 -import macros, future, strutils +import macros, sugar, strutils type Option[T] = ref object @@ -42,7 +42,7 @@ proc getOrElse[T](o: Option[T], def: T): T = proc quoteStr(s: string): Option[string] = s.some.notEmpty.map(v => "`" & v & "`") -macro str(s: string): typed = +macro str(s: string): void = let x = s.strVal let y = quoteStr(x) let sn = newStrLitNode(y.getOrElse("NONE")) |