mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-04 19:27:16 +01:00
23 lines
392 B
ObjectPascal
23 lines
392 B
ObjectPascal
{$ifdef fpc}
|
|
{$mode delphi}
|
|
{$endif}
|
|
|
|
{$r-}
|
|
uses
|
|
SysUtils, Classes, TypInfo, Variants;
|
|
|
|
type
|
|
TBla = class(TPersistent)
|
|
private
|
|
fBool: Boolean;
|
|
fint: integer;
|
|
published
|
|
property Bool: Boolean read fBool write fBool;
|
|
property int: integer read fint write fint;
|
|
end;
|
|
|
|
begin
|
|
{ fails in Delphi 6, succeeds in Delphi 7 }
|
|
SetPropValue(TBla.Create, 'int', 'true');
|
|
end.
|