al-code-outline icon indicating copy to clipboard operation
al-code-outline copied to clipboard

Remove unused variables does not respect preprocessor directives

Open RadekZebrowski opened this issue 4 years ago • 0 comments

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...

RadekZebrowski avatar Feb 24 '22 12:02 RadekZebrowski