Error when constant is used to specify variable size
MDagni opened this issue · 5 comments
MDagni commented
jmgrassau commented
Hi Mehmet,
thanks for reporting this bug – this case is indeed not yet considered by the cleanup rule "Make implicit type explicit"!
Kind regards,
Jörg-Michael
jmgrassau commented
Hi Mehmet,
thanks again – I thought I solved this, but I just realized there are more issues connected to this, therefore keeping it open for now!
Kind regards,
Jörg-Michael
jmgrassau commented
Hi Mehmet,
okay, with the next release, these issues should now be resolved:
- "Make implicit type explicit" correctly resolves the implicit types,
- "Rearrange local declarations" now keeps the CONSTANTS before the TYPES (because they are used there),
- "Delete unused variables" recognizes that the constants are used and therefore cannot be commented out:
Thanks again for reporting this!
Kind regards,
Jörg-Michael
MDagni commented
Thank you for solving it quickly 🙂
jmgrassau commented
Hi Mehmet,
thanks a lot – this should now be fixed in version 1.19.3, which was just released!
Kind regards,
Jörg-Michael