From 5c94a9e1aea4a25fd9909adf464d9edf3b7ac526 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 28 Jun 2011 01:31:53 +0200 Subject: tests are green again --- tests/accept/run/toop1.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/accept/run/toop1.nim') 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) -- cgit 1.4.1-2-gfad0