fpc/tests/webtbs/tw9347b.pp
Jonas Maebe 399598a15b + another test which currently fails (Delphi 7 supports converting
variant('true') to an integer, Delphi 6/Kylix doesn't)

git-svn-id: trunk@8249 -
2007-08-08 14:38:59 +00:00

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.