HomeDelphiDelphi Error – H2443 Inline function ‘%s’ has not been expanded because unit ‘%s’ is not specified in USES list

Delphi Error – H2443 Inline function ‘%s’ has not been expanded because unit ‘%s’ is not specified in USES list

Delphi Compiler Error

H2443 Inline function ‘%s’ has not been expanded because unit ‘%s’ is not specified in USES list

Reason for the Error & Solution

This situation may occur if an inline function refers to a type in a unit that is not explicitly used by the function’s unit. For example, this may happen if the function uses inherited to refer to methods inherited from a distant ancestor, and that ancestor’s unit is not explicitly specified in the uses list of the function’s unit.

If the inline function’s code is to be expanded, then the unit that calls the function must explicitly use the unit where the ancestor type is exposed.

Note: You can disable these hints by turning off Inlining in Project > Options > Compiling .

See Also

Share:

Leave a Reply

You May Also Like

Delphi Compiler Error X2421 Imported identifier ‘%s’ conflicts with ‘%s’ in ‘%s’ Reason for the Error & Solution This occurs...
Delphi Compiler Error X2367 Case of property accessor method %s.%s should be %s.%s Reason for the Error & Solution No...
Delphi Compiler Error X2269 Overriding virtual method ‘%s.%s’ has lower visibility (%s) than base class ‘%s’ (%s) Reason for the...