For clarity and consistency, visibility sections within the body of a class, interface, or record declaration should be organized in the following order:
The Delphi compiler also forbids field declarations from appearing after routine or property declarations in the same visibility section.
Reorder the offending visibility section into fields, then routines, then properties:
type
TMyType = class(TObject)
private
FMyVar: Integer;
property MyVar: Integer read FMyVar;
procedure DoThing;
procedure DoAnotherThing;
property MyOtherVar: Integer read FMyVar;
end;
type
TMyType = class(TObject)
private
FMyVar: Integer;
procedure DoThing;
procedure DoAnotherThing;
property MyVar: Integer read FMyVar;
property MyOtherVar: Integer read FMyVar;
end;