Greetings!
The following code displays "Oh Hi" using the devel branch (1.7) but fails to compile using 1.6.6 (current stable). Is this expected? Thank you.
macro ohhi(letSection: untyped): untyped =
echo "Oh Hi"
result = letSection
proc test() =
let
t {. ohhi .} = 1
test()
Related to https://forum.nim-lang.org/t/9177#60198
🤔 This example fails to compile too: /tmp/test.nim(8, 11) Error: invalid pragma: ohhi
import macros
macro ohhi(letSection: untyped): untyped =
echo treeRepr letSection
return letSection
proc test() =
let t {.ohhi, nodecl.} = 1
test()