fpc/tests/webtbs/tw9347.pp
Jonas Maebe b43404964c * support 'true'/'false' for SetOrdProp on booleans (fixes #9347)
+ test for that bug, plus another test based on it which doesn't work yet

git-svn-id: trunk@8247 -
2007-08-08 13:26:28 +00:00

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.