Delphi Error – H2457 Inline function ‘%s’ has not been expanded because contained unit ‘%s’ uses compiling unit ‘%s’ indirectly

Delphi Compiler Error

H2457 Inline function ‘%s’ has not been expanded because contained unit ‘%s’ uses compiling unit ‘%s’ indirectly

Reason for the Error & Solution

This occurs when the inlined function indirectly contains a circular reference to the current compilation unit.

See Also