From: "agrimm (Andrew Grimm)" Date: 2013-09-18T07:37:14+09:00 Subject: [ruby-core:57250] [ruby-trunk - Feature #8691] Add warning for variable that is re-assigned but not re-used Issue #8691 has been updated by agrimm (Andrew Grimm). Yes, close the ticket. If someone else wants the functionality, or has implemented the functionality and wants to submit a patch, they can open another ticket. ---------------------------------------- Feature #8691: Add warning for variable that is re-assigned but not re-used https://bugs.ruby-lang.org/issues/8691#change-41869 Author: agrimm (Andrew Grimm) Status: Feedback Priority: Normal Assignee: Category: Target version: The following code def reassigned_unused a = 42 b = a.to_s a = 56 b end Does not currently generate an "assigned but unused variable" warning about the second assignment to "a". Is it feasible to create a warning for such a scenario? -- http://bugs.ruby-lang.org/