E2441 Inline function declared in interface section must not use local symbol '%s' (Object Pascal)

From Appmethod Topics
Jump to: navigation, search

Go Up to Error and Warning Messages (Object Pascal) Index

This error occurs when an inline function is declared in the interface section and it refers to a symbol that is not visible outside the unit. Expanding the inline function in another unit would require accessing the local symbol from outside the unit, which is not permitted.

To correct this error, move the local symbol declaration to the interface section, or make it an instance variable or class variable of the function's class type.

See Also