E2019 Object type required (Object Pascal)
This error is given whenever an object type is expected by the compiler. For instance, the ancestor type of an object must also be an object type.
type MyObject = object(TObject) end; begin end.
Confusingly enough, TObject in the unit System has a class type, so we cannot derive an object type from it.
program Solve; type MyObject = class (*Actually, this means: class(TObject)*) end; begin end.
Make sure the type identifier really stands for an object type - maybe it is misspelled, or maybe is hidden by an identifier from another unit.