overloading resolution for getAst; breaking change

This commit is contained in:
Araq 2017-03-18 20:57:45 +01:00
commit aa4260ffa8
5 changed files with 44 additions and 18 deletions

View file

@ -0,0 +1,19 @@
discard """
errormsg: "type mismatch"
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()