[#70843] Re: [ruby-cvs:58952] hsbt:r51801 (trunk): * lib/rubygems: Update to RubyGems HEAD(fe61e4c112). — Eric Wong <normalperson@...>
hsbt@ruby-lang.org wrote:
3 messages
2015/09/17
[ruby-core:70834] [Ruby trunk - Bug #11534] [Rejected] Circular assignment / method shadowing unexpected behavior
From:
nobu@...
Date:
2015-09-17 04:55:49 UTC
List:
ruby-core #70834
Issue #11534 has been updated by Nobuyoshi Nakada. Description updated Status changed from Open to Rejected Assignment statements make variables. ---------------------------------------- Bug #11534: Circular assignment / method shadowing unexpected behavior https://bugs.ruby-lang.org/issues/11534#change-54209 * Author: Tim Smith * Status: Rejected * Priority: Normal * Assignee: * ruby -v: ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- ~~~ruby def foo 1 end puts foo + 1 bar = foo + 1 puts bar foo = foo + 1 puts foo ~~~ ~~~ # EXPECTED 2 2 2 ~~~ ~~~ # ACTUAL 2 2 undefined method `+' for nil:NilClass (NoMethodError) -- https://bugs.ruby-lang.org/