mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:49:33 +02:00
* fixed test
This commit is contained in:
parent
16bd288cae
commit
616c6ef979
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user