mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 02:50:27 +02:00
*** empty log message ***
This commit is contained in:
parent
dea441a7dd
commit
1d1df129f6
@ -1,9 +1,11 @@
|
|||||||
{ %version=1.1 }
|
{ %version=1.1 }
|
||||||
{$mode objfpc}
|
{$mode objfpc}
|
||||||
|
{$M+}
|
||||||
uses
|
uses
|
||||||
typinfo;
|
typinfo;
|
||||||
type
|
type
|
||||||
tmyobject = class
|
tmyobject = class
|
||||||
|
protected
|
||||||
fs : single;
|
fs : single;
|
||||||
published
|
published
|
||||||
property s : single read fs write fs default 3.1415;
|
property s : single read fs write fs default 3.1415;
|
||||||
@ -14,6 +16,11 @@ var
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
myobject:=tmyobject.create;
|
myobject:=tmyobject.create;
|
||||||
writeln(GetFloatProp(myobject,'S'));
|
SetFloatProp(myobject,'s',3);
|
||||||
|
if GetFloatProp(myobject,'s')<>3 then
|
||||||
|
begin
|
||||||
|
writeln('error');
|
||||||
|
halt(1);
|
||||||
|
end;
|
||||||
myobject.free;
|
myobject.free;
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user