diff options
author | Araq <rumpf_a@web.de> | 2012-09-08 18:51:52 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-09-08 18:51:52 +0200 |
commit | 46e9ff61394794245e323034fbb93c24774b8c5c (patch) | |
tree | 8b6c80583b6ee394df7ad96123215ae0da938561 /tests/patterns | |
parent | e2ecfb843885ba5e2fc27c5579b1be1df797cb09 (diff) | |
download | Nim-46e9ff61394794245e323034fbb93c24774b8c5c.tar.gz |
tmatrix.nim works now
Diffstat (limited to 'tests/patterns')
-rw-r--r-- | tests/patterns/tmatrix.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/patterns/tmatrix.nim b/tests/patterns/tmatrix.nim index 067c4cd5a..5074e068d 100644 --- a/tests/patterns/tmatrix.nim +++ b/tests/patterns/tmatrix.nim @@ -13,8 +13,8 @@ proc `+`(a, b: TMat): TMat = nil proc `-`(a, b: TMat): TMat = nil proc `$`(a: TMat): string = result = $a.dummy -macro optOps{ (`+`|`-`|`*`) *| a }(a: varargs[TMat]): expr = - result = newIntLitNode(21) +macro optOps{ (`+`|`-`|`*`) *| a }(a: TMat): expr = + result = callsite() #macro optPlus{ `+` * a }(a: varargs[TMat]): expr = # result = newIntLitNode(21) |