mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 20:08:12 +02:00

* fixed accessibility checking for strict_protected (the class in which the access occurs also has to be related to the objectdef of which a symbol is accessed) + test git-svn-id: trunk@22565 -
28 lines
249 B
ObjectPascal
28 lines
249 B
ObjectPascal
{ %fail }
|
|
|
|
{$ifdef fpc}
|
|
{$mode delphi}
|
|
{$endif}
|
|
|
|
unit tsprot;
|
|
|
|
interface
|
|
|
|
uses
|
|
usprot1,usprot2;
|
|
|
|
type
|
|
tchild2 = class(tbase)
|
|
f: tchild1;
|
|
procedure test;
|
|
end;
|
|
|
|
implementation
|
|
|
|
procedure tchild2.test;
|
|
begin
|
|
f.pmethod;
|
|
end;
|
|
|
|
end.
|