Delphi – E2019 Object type required

When the compiler expects an object type, this error is returned. An object’s ancestor type, for example, must also be an object type.

type
  MyObject = object(TObject)
  end;
begin
end.

TObject in the unit System has a class type, which means we can’t derive an object type from it.

program Solve;
type
  MyObject = class  (*Actually, this means: class(TObject)*)
  end;
begin
end.

Make that the type identification corresponds to an object type; it could be misspelt or obscured by another unit’s identifier.