mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 11:59:27 +02:00
20 lines
237 B
ObjectPascal
20 lines
237 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tw31107;
|
|
|
|
{$MODE DELPHI}
|
|
|
|
uses RTTI;
|
|
|
|
type
|
|
TFoo = class
|
|
private
|
|
FBar: string;
|
|
public
|
|
property Bar: string read FBar;
|
|
end;
|
|
|
|
begin
|
|
Writeln(Assigned(TRttiContext.GetType(TFoo).GetProperty('Bar')));
|
|
end.
|