diff options
Diffstat (limited to 'tests/objects/toop1.nim')
-rw-r--r-- | tests/objects/toop1.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/objects/toop1.nim b/tests/objects/toop1.nim index 4727d146d..3e9b24990 100644 --- a/tests/objects/toop1.nim +++ b/tests/objects/toop1.nim @@ -1,5 +1,4 @@ discard """ - file: "toop1.nim" output: "34[]o 5" """ # Test the stuff in the tutorial @@ -35,7 +34,7 @@ proc init(my: var TRectangle) = my.height = 10 my.draw = cast[proc (my: var TFigure) {.nimcall.}](drawRectangle) -macro `!` (n: expr): stmt {.immediate.} = +macro `!` (n: varargs[untyped]): typed = let n = callsite() result = newNimNode(nnkCall, n) var dot = newNimNode(nnkDotExpr, n) |