From: Joseph Jones Date: 2015-12-17T21:06:20-07:00 Subject: [ruby-core:72266] [Ruby trunk - Bug #11754] Visibility scope is kept after lexical scope is closed --5673863c_8138641_16c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Joseph Jones liked your message with Boxer. On December 7, 2015 at 00:24:= 14 MST, ko1=40atdot.net wrote:Issue =2311754 has been updated by Koichi S= asada.Assignee set to Koichi Sasada--------------------------------------= --Bug =2311754: Visibility scope is kept after lexical scope is closedhtt= ps://bugs.ruby-lang.org/issues/11754=23change-55284* Author: Max Melentie= v* Status: Open* Priority: Normal* Assignee: Koichi Sasada* ruby -v: ruby= 2.3.0preview1 (2015-11-11 trunk 52539) =5Bx86=5F64-darwin13=5D* Backport= : 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN-----------------------------= -----------=7E=7E=7Emodule X def self.test=5Fdef def x; end; end private= def y; end; endX.test=5FdefX.instance=5Fmethods=7E=7E=7EIn 2.2 it return= s =5B:x=5D, in 2.3-preview1 it returns empty array. Is it ok=3F-- https:/= /bugs.ruby-lang.org/ --5673863c_8138641_16c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joseph Jones liked your message with Boxer.


= On December 7, 2015 at 00:24:14 MST, ko1=40atdot.net wrote:
Issue =2311754 has been updated by = Koichi Sasada.

Assignee set to Koichi Sasada

------= ----------------------------------
Bug =2311754: Visibility scope is= kept after lexical scope is closed
https://bugs.ruby-lang.org/issue= s/11754=23change-55284

* Author: Max Melentiev
* Status: = Open
* Priority: Normal
* Assignee: Koichi Sasada
* ruby -= v: ruby 2.3.0preview1 (2015-11-11 trunk 52539) =5Bx86=5F64-darwin13=5D* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------= ------------------------------
=7E=7E=7E
module X
def se= lf.test=5Fdef
def x; end;
end

private
= def y; end;
end
X.test=5Fdef
X.instance=5Fmethods
=7E= =7E=7E

In 2.2 it returns =5B:x=5D, in 2.3-preview1 it returns = empty array. Is it ok=3F



--
https://bugs.rub= y-lang.org/
--5673863c_8138641_16c--