diff options
Diffstat (limited to 'tests/macros/tquotewords.nim')
-rw-r--r-- | tests/macros/tquotewords.nim | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/macros/tquotewords.nim b/tests/macros/tquotewords.nim index 7a575f541..e718d25f9 100644 --- a/tests/macros/tquotewords.nim +++ b/tests/macros/tquotewords.nim @@ -1,12 +1,11 @@ discard """ - file: "tquotewords.nim" output: "thisanexample" """ # Test an idea I recently had: import macros -macro quoteWords(n: expr): expr {.immediate.} = +macro quoteWords(n: varargs[untyped]): untyped = let n = callsite() result = newNimNode(nnkBracket, n) for i in 1..n.len-1: @@ -21,6 +20,3 @@ for w in items(myWordList): s.add(w) echo s #OUT thisanexample - - - |