mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 22:47:59 +02:00
19 lines
271 B
ObjectPascal
19 lines
271 B
ObjectPascal
{ %FAIL}
|
|
program tclass10b;
|
|
{$ifdef fpc}
|
|
{$mode delphi}
|
|
{$endif}
|
|
|
|
// check that "protected" or any other section resets the section type to accept regular fields
|
|
|
|
type
|
|
Tfoo=class
|
|
type private
|
|
TF = (one,two,three);
|
|
type protected
|
|
f: TF;
|
|
end;
|
|
|
|
begin
|
|
end.
|