From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 362DD19E0032 for ; Mon, 7 Dec 2015 15:52:44 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 3C4D5B5D92D for ; Mon, 7 Dec 2015 16:24:21 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id C7BA818CC7D1 for ; Mon, 7 Dec 2015 16:24:21 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id E66CC12048C; Mon, 7 Dec 2015 16:24:21 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id 90303120479 for ; Mon, 7 Dec 2015 16:24:17 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=ZqRhgRYUpcdOhuNIgHmAZKHhJC0=; b=OXVWKDWyqMExyTapzl 7Z3+peF5DUAHE1AeazaBX3Sd4jqHIp2Tg0o9QblXNN++UDvoiFWQyjBMsOxQVSe3 62nexMmWpk5OtMt0oYcgRuwteb+nsvJHBfS4Va54P2i3CP6mxZQRaPyHeUnIdsyE RPV4uidKnZXxD1rnQUsW0DT5g= Received: by filter0691p1mdw1.sendgrid.net with SMTP id filter0691p1mdw1.7299.5665341D50 2015-12-07 07:24:13.927936364 +0000 UTC Received: from herokuapp.com (ec2-23-20-10-187.compute-1.amazonaws.com [23.20.10.187]) by ismtpd0005p1iad1.sendgrid.net (SG) with ESMTP id t_yEM_hHRp-IAaST9D0B9w Mon, 07 Dec 2015 07:24:14.245 +0000 (UTC) Date: Mon, 07 Dec 2015 07:24:14 +0000 From: ko1@atdot.net To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 46575 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11754 X-Redmine-Issue-Author: printercu X-Redmine-Issue-Assignee: ko1 X-Redmine-Sender: ko1 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS7AwzmNf9y5DTXSg5bUUaH19Gf9Bqcc1E4rn/ 5H1Kj/f+43vb5kTTGVPJGudrVNpf3sxRTK9BnqOT5uaFe2gCs+uX3WbGBWZWkbPaAHCVLYy4QK82nC GAa1Bt9Nzd06+Q+XLhOIiWDCtuyEutpL2G5I X-ML-Name: ruby-core X-Mail-Count: 71881 Subject: [ruby-core:71881] [Ruby trunk - Bug #11754] Visibility scope is kept after lexical scope is closed X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11754 has been updated by Koichi Sasada. Assignee set to Koichi Sasada ---------------------------------------- Bug #11754: Visibility scope is kept after lexical scope is closed https://bugs.ruby-lang.org/issues/11754#change-55284 * Author: Max Melentiev * Status: Open * Priority: Normal * Assignee: Koichi Sasada * ruby -v: ruby 2.3.0preview1 (2015-11-11 trunk 52539) [x86_64-darwin13] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- ~~~ module X def self.test_def def x; end; end private def y; end; end X.test_def X.instance_methods ~~~ In 2.2 it returns [:x], in 2.3-preview1 it returns empty array. Is it ok? -- https://bugs.ruby-lang.org/