How can I get scalac to tell me if I have unused variables?
问题 I just noticed a bug in my code where I created a new variable, but then failed to actually use it. I assumed that scalac would have told me that my new variable was unused, but this didn't seem to be the case, and after a small amount of googling / man page, I couldn't find anything about enabling warnings. What can I do to enable such warnings? 回答1: This stuff was just now discussed on the scala user mailing list. Result of the discussion: It's considererd task of IDE to do that (so far