mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 09:29:26 +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;
|
function tc.test(var c: tc): boolean;
|
||||||
begin
|
begin
|
||||||
result := foreach(c.left,@test);
|
{ if you use @test, the compiler tries to get the address of the }
|
||||||
result := foreach(c.right,@test) or result;
|
{ 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;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user