mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 04:29:29 +02:00
* use self.test instead of tc.test
This commit is contained in:
parent
0653404f70
commit
702947b966
@ -18,8 +18,8 @@ type
|
||||
begin
|
||||
{ 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;
|
||||
result := foreach(c.left,@self.test);
|
||||
result := foreach(c.right,@self.test) or result;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user