Delphi Error – E2442 Inline directive not allowed in constructor or destructor

Delphi Compiler Error

E2442 Inline directive not allowed in constructor or destructor

Reason for the Error & Solution

Remove the inline directive to prevent this error.

See Also