mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 21:08:30 +02:00
22 lines
367 B
ObjectPascal
22 lines
367 B
ObjectPascal
program tclass10c;
|
|
{$ifdef fpc}
|
|
{$mode delphi}
|
|
{$endif}
|
|
|
|
// check that "protected" or any other section resets the section type to accept regular fields
|
|
|
|
type
|
|
Tfoo=class
|
|
private
|
|
class var
|
|
f1: Integer;
|
|
protected
|
|
f2: Integer;
|
|
public
|
|
class property pf1: Integer read f1;
|
|
property pf2: Integer read f2;
|
|
end;
|
|
|
|
begin
|
|
end.
|