Error code E0434
A variable used inside an inner function comes from a dynamic environment.
Erroneous code example:
ⓘ
Inner functions do not have access to their containing environment. To fix this error, you can replace the function with a closure:
Or replace the captured variable with a constant or a static item: