Expand To Show Full Article
Delphi Error - E2449 Inlined nested routine '%s' cannot access outer scope variable '%s' - Developer Publish

Delphi Error – E2449 Inlined nested routine ‘%s’ cannot access outer scope variable ‘%s’

Delphi Compiler Error

E2449 Inlined nested routine ‘%s’ cannot access outer scope variable ‘%s’

Reason for the Error & Solution

You can use the inline directive with nested procedures and functions. However, a nested procedure or function that refers to a variable that is local to the outer procedure is not eligible for inlining.

See Also