Option to warn about shadowing
Submitted by Eric Gregory
Link to original bug (#696883)
Description
We had a tricky to track down little bug that went something like this:
Object a = new Thingie();
// ...
void my_function(Object a) { a = null;
// ...
I really wish Vala had warned us about this in the first place!
A strict "no shadowing" rule seems a little extreme, but how about a command line option to generate a warning each time a variable is shadowed?