The type checker should give a warning if a local variable is only assigned to but never read.
This is usually a result of a misspelled variable name.
Perhaps only do this if warnings have been explicitly enabled using a command line option or via some other mechanism.