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

mame at ruby-lang.org mame at ruby-lang.org
Fri Oct 26 11:54:01 JST 2018


mame	2018-10-26 11:54:01 +0900 (Fri, 26 Oct 2018)

  New Revision: 65367

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

  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].

  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