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

Delphi Compiler Error

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

Reason for the Error & Solution

This occurs when the function that needs to be inlined creates a circular unit reference to the current unit.

See Also