AA0137 - missing warning for global variables on report extensions
Please include the following with each issue:
1. Describe the bug A global variable on a report extension. The variable is declared an not used anywhere. There is no diagnostic report for said variable.
2. To Reproduce Steps to reproduce the behavior:
- Create a new Report - this can be empty
- Create a report extension targeting the report created in 1.
- Add a global variable
report 51000 test { }
reportextension 51000 Test extends Test
{
var
myInt: Integer;
procedure Test()
var
mylocalInt: Integer;
begin
end;
}
Note: Because the developers need to copy and paste the code snippet, including a code snippet as a media file (i.e. .gif) is not sufficient.
3. Expected behavior
Expected to have a diagnostics report for variable myInt.
4. Actual behavior
There is no diagnostic for variable myInt.
5. Versions:
- AL Language: 15.0.1410565
- Visual Studio Code: 1.99.0
- Business Central: -
- List of Visual Studio Code extensions that you have installed: AL Language extension
- Operating System:
- [ x ] Windows
- [ ] Linux
- [ ] MacOS
Final Checklist
Please remember to do the following:
-
[ x ] Search the issue repository to ensure you are reporting a new issue
-
[ x ] Reproduce the issue after disabling all extensions except the AL Language extension
-
[ x ] Simplify your code around the issue to better isolate the problem
Internal work item: AB#574493