overloading resolution for getAst; breaking change
This commit is contained in:
parent
242fb3240f
commit
aa4260ffa8
5 changed files with 44 additions and 18 deletions
19
tests/template/twrong_getast.nim
Normal file
19
tests/template/twrong_getast.nim
Normal 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()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue