al-code-outline
al-code-outline copied to clipboard
Remove unused variables does not respect preprocessor directives
This is in line with base AL compiler - but it is still wrong. If I have a variable and this variable is used in code which is wrapped around preprocessor directive - and I currently not using this particular directive - then the variable is recognized as 'unused' and will be removed if I use 'remove unused variables'. Later, when I put the directive into app.json, the code will error - because there will be undeclared variable...