This commit is contained in:
Araq 2015-03-22 00:27:26 +01:00
commit 0d804c2052
4 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,10 @@
# bug #2266
import macros
proc impl(op: static[int]) = echo "impl 1 called"
proc impl(op: static[int], init: int) = echo "impl 2 called"
macro wrapper2: stmt = newCall(bindSym"impl", newLit(0), newLit(0))
wrapper2() # Code generation for this fails.