summary refs log tree commit diff stats
path: root/tests/showoff
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2020-07-14 11:44:56 -0300
committerGitHub <noreply@github.com>2020-07-14 16:44:56 +0200
commit9465b5db443b98d7ac2c1683e986716fb9a9290f (patch)
tree47e6b4eaf5c66c364f8d6bde2bb904296902fe87 /tests/showoff
parent2b0e336c971401d06797240686722ce669d902b9 (diff)
downloadNim-9465b5db443b98d7ac2c1683e986716fb9a9290f.tar.gz
Clean up macros (#14959)
Diffstat (limited to 'tests/showoff')
-rw-r--r--tests/showoff/tformatopt.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/showoff/tformatopt.nim b/tests/showoff/tformatopt.nim
index 6e790c38e..420dd026b 100644
--- a/tests/showoff/tformatopt.nim
+++ b/tests/showoff/tformatopt.nim
@@ -37,7 +37,7 @@ macro optFormat{`%`(f, a)}(f: string{lit}, a: openArray[string]): untyped =
   result = newNimNode(nnkBracket)
   let f = f.strVal
   formatImpl(newLit)
-  result = nestList(!"&", result)
+  result = nestList(newIdentNode("&"), result)
 
 template optAdd1{x = y; add(x, z)}(x, y, z: string) =
   x = y & z