From: Eric Wong Date: 2017-10-16T04:06:56+00:00 Subject: [ruby-core:83306] Re: [Ruby trunk Bug#13872] Duplicate assignment no longer silences "assigned but unused variable" warning ronnie@dio.jp wrote: > Please upgrade your code to actually "use" all the assigned > local variables, in this case, to `var = "foo"; var = var`. The problem is with binding: require 'erb' foo = :bar puts ERB.new('<%= foo %>').result(binding) The above uses foo, but binding isn't handled by the parser. Maybe the parser should not warn if the word `binding' appears in scope? And check for local variables named `binding'... But yes, this is annoying with ERB when I want my code to be warning-clean. Unsubscribe: