1234567891011121314151617181920 |
- discard """
- errormsg: "expected a template that takes 3 arguments"
- line: 16
- """
- import macros
- template grainBlock(proxyTypeName: untyped, proxyProcs: untyped): typed =
- discard
- var
- proxyTypeName: string
- proxyProcs: string
- macro foo(): untyped =
- let x = getAst grainBlock(proxyTypeName, proxyProcs, proxyTypeName)
- foo()
|