* fixed test

This commit is contained in:
Jonas Maebe 2001-08-01 11:08:49 +00:00
parent 16bd288cae
commit 616c6ef979

View File

@ -16,8 +16,10 @@ type
function tc.test(var c: tc): boolean;
begin
result := foreach(c.left,@test);
result := foreach(c.right,@test) or result;
{ if you use @test, the compiler tries to get the address of the }
{ function result instead of the address of the method (JM) }
result := foreach(c.left,@tc.test);
result := foreach(c.right,@tc.test) or result;
end;