View Issue Details

IDProjectCategoryView StatusLast Update
0038338FPCRTLpublic2021-01-10 11:46
ReporterAndrey Zubarev Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status acknowledgedResolutionopen 
Summary0038338: Missing Rtti.TRttiContext.FindType (Delphi compat)
Descriptionprogram Project1;

{$STRONGLINKTYPES ON}

uses
  rtti,
  Unit1;

var
  c : TRttiContext;
  rt: TRttiType;

begin
   c := TRttiContext.Create;
   rt:=c.FindType('Unit1.tb');
   Writeln(rt.name);
   readln;
end.

------------------------------

unit Unit1;

interface

type
  tb=record
   fa:integer;
  end;

implementation
end.
Tagsextended rtti
Fixed in Revision
FPCOldBugId
FPCTarget-
Attached Files

Activities

Sven Barth

2021-01-10 11:46

manager   ~0128240

The compiler currently doesn't generate any data to populate this, thus even if the method would exist, it would simply return nothing.

Issue History

Date Modified Username Field Change
2021-01-09 20:05 Andrey Zubarev New Issue
2021-01-10 11:45 Sven Barth Tag Attached: extended rtti
2021-01-10 11:46 Sven Barth Status new => acknowledged
2021-01-10 11:46 Sven Barth FPCTarget => -
2021-01-10 11:46 Sven Barth Note Added: 0128240