unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.Variants, Vcl.Graphics, Vcl.Controls, UnitHelper, Vcl.Forms; type TTestType = string; TForm1 = class(TForm) procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); var TestType: TTestType; begin TestType := TestType.ErrorInsightError; // TTestType does not contain member ErrorInsightError (хотя компилируется) end; end. |