Compiler Error AL0120
Note
The AL diagnostics topics are in preview. If you have input for this topic, we'd love to hear from you. Use our GitHub repo to create a PR and add content to this topic by going to here. To read about contributing, see Contribute to the Help. If you'd like to see us prioritize certain areas within the AL diagnostics, you can file a GitHub issue, in the Feedback section at the bottom of this page, choose This page, fill in the template, and include REF PRI in the title. Thanks!
A local or parameter named '{0}' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter.
Description
Cannot declare local or parameter in a scope if there already is a local or parameter with the same name used in an enclosing local scope.
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for