You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Expected behavior
Warning should not be shown. The warning now disappear when you change Populate(this.HeaderTableNo, this.LineTableNo) to Populate(HeaderTableNo, LineTableNo) so it's probably related to THIS keyword and how the pass-by-reference is evaluated.
4. Actual behavior
AA0205 warning is shown
5. Versions:
AL Language: v14.1.1180850
Visual Studio Code: 1.94.2
Business Central: not related
List of Visual Studio Code extensions that you have installed: not related
@nndobrev This was closed in #7886 as duplicate of #7877. However, this is not the same issue and has different impacts (I was discussing this issue at Directions on Thursday).
The linked issue is a problem with local/global variables. My issue is about a warning even when you have ONLY global variables. While I agree with the "by design" for #7877, my issue is not by design but an issue that will block anyone from using THIS keyword (as this warning is shown every time you pass this.VARIABLE to the setter.
Please include the following with each issue:
1. Describe the bug
AA0205 is fired for assigned variables when combined with THIS keyword
2. To Reproduce
Steps to reproduce the behavior:
3. Expected behavior
Warning should not be shown. The warning now disappear when you change Populate(this.HeaderTableNo, this.LineTableNo) to Populate(HeaderTableNo, LineTableNo) so it's probably related to THIS keyword and how the pass-by-reference is evaluated.
4. Actual behavior
AA0205 warning is shown
5. Versions:
Internal work item: AB#557596
The text was updated successfully, but these errors were encountered: