mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 08:59:27 +02:00

+ test for that bug, plus another test based on it which doesn't work yet git-svn-id: trunk@8247 -
22 lines
347 B
ObjectPascal
22 lines
347 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
|
|
SetPropValue(TBla.Create, 'Bool', 'true');
|
|
end.
|