[Ruby 1.9-Bug#4130][Assigned] wrong line number with shadowing and unused variable

Bug #4130: wrong line number with shadowing and unused variable
http://redmine.ruby-lang.org/issues/show/4130

起票者: Nobuyoshi N.
ステータス: Assigned, 優先度: Normal
担当者: Nobuyoshi N., カテゴリ: core
ruby -v: 1.9.3 r30114

shadowing outer local variableとassigned but unused
variableの組み合わせで行番号がおかしくなります。

$ cat test.rb
def foo
a = 1
tap do |a|
end
end
$ ./ruby -v test.rb
ruby 1.9.3dev (2010-12-07 trunk 30114) [i386-darwin9.0]
test.rb:3: warning: shadowing outer local variable - a
test.rb:12456: warning: assigned but unused variable - a

チケット #4130 が更新されました。 (by Nobuyoshi N.)

ステータス AssignedからClosedに変更
進捗 % 0から100に変更

This issue was solved with changeset r30124.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.