diff options
author | Araq <rumpf_a@web.de> | 2011-06-28 01:31:53 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-06-28 01:31:53 +0200 |
commit | 5c94a9e1aea4a25fd9909adf464d9edf3b7ac526 (patch) | |
tree | f8b51a7fe867299df37e0a3cc925e2c3c8866747 /tests/accept/run/toop1.nim | |
parent | 3091bc4958a32065b90895c83c6393b9129e0366 (diff) | |
download | Nim-5c94a9e1aea4a25fd9909adf464d9edf3b7ac526.tar.gz |
tests are green again
Diffstat (limited to 'tests/accept/run/toop1.nim')
-rwxr-xr-x | tests/accept/run/toop1.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/accept/run/toop1.nim b/tests/accept/run/toop1.nim index a925642e8..35af2fcc2 100755 --- a/tests/accept/run/toop1.nim +++ b/tests/accept/run/toop1.nim @@ -21,7 +21,7 @@ proc drawCircle(my: var TCircle) = stdout.writeln("o " & $my.radius) proc init(my: var TCircle) = init(TFigure(my)) # call base constructor my.radius = 5 - my.draw = drawCircle + my.draw = cast[proc (my: var TFigure)](drawCircle) type TRectangle = object of TFigure @@ -33,7 +33,7 @@ proc init(my: var TRectangle) = init(TFigure(my)) # call base constructor my.width = 5 my.height = 10 - my.draw = drawRectangle + my.draw = cast[proc (my: var TFigure)](drawRectangle) macro `!` (n: expr): stmt = result = newNimNode(nnkCall, n) |