bugfix: tcan_inherit_generic works again
This commit is contained in:
parent
fc9bfb5eac
commit
ac978b3203
2 changed files with 9 additions and 1 deletions
8
tests/compile/tmacroaspragma.nim
Normal file
8
tests/compile/tmacroaspragma.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import macros
|
||||
|
||||
macro foo(x: stmt): stmt =
|
||||
echo treerepr(callsite())
|
||||
result = newNimNode(nnkStmtList)
|
||||
|
||||
proc zoo() {.foo.} = echo "hi"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue