[ruby-cvs:72469] mame:r65369 (trunk): parse.y: remove "shadowing outer local variable" warning

mame at ruby-lang.org mame at ruby-lang.org
Fri Oct 26 12:10:02 JST 2018


mame	2018-10-26 12:10:02 +0900 (Fri, 26 Oct 2018)

  New Revision: 65369

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65369

  Log:
    parse.y: remove "shadowing outer local variable" warning
    
    You can now write the following without warning.
    
        user = User.all.find {|user| cond(user) }
    
    Fixes [Feature #12490].
    A patch from Soutaro Matsumoto <matsumoto at soutaro.com>.

  Modified files:
    trunk/NEWS
    trunk/parse.y
    trunk/test/lib/test/unit/assertions.rb
    trunk/test/ripper/test_parser_events.rb
    trunk/test/ruby/test_parse.rb
    trunk/test/ruby/test_rubyoptions.rb


More information about the ruby-cvs mailing list