We now check for unused variables one at a time, instead of all at the top. Test: dependent/should_compile/T11405