fpc/tests/test/tsprot.pp
Jonas Maebe e9f4b095e1 + explanation for the parameters of is_visible_for_object
* 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 -
2012-10-06 16:28:27 +00:00

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.