From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.1 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id DADC420248 for ; Fri, 1 Mar 2019 00:57:30 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id C4A89120E97; Fri, 1 Mar 2019 09:57:24 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 292FF120C57 for ; Fri, 1 Mar 2019 09:57:22 +0900 (JST) Received: by filter0133p3las1.sendgrid.net with SMTP id filter0133p3las1-11225-5C788370-A 2019-03-01 00:57:20.255169652 +0000 UTC m=+4565.632075761 Received: from herokuapp.com (unknown [35.153.142.167]) by ismtpd0005p1iad1.sendgrid.net (SG) with ESMTP id 6aGyuDRMRQGwkJ1xCJvyPw for ; Fri, 01 Mar 2019 00:57:20.143 +0000 (UTC) Date: Fri, 01 Mar 2019 00:57:21 +0000 (UTC) From: s.wanabe@gmail.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 67099 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15629 X-Redmine-Issue-Author: wanabe X-Redmine-Sender: wanabe 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: =?us-ascii?Q?FsuGSN1PD4adq4aDFRSSBF8ffe=2F4plpeX9T+dOtlSNZsf8KUGN50Tt0whVA9Nn?= =?us-ascii?Q?B6nugaO1mgNCd6dpJIQK+lNK+2zZosXanvK=2FO0W?= =?us-ascii?Q?Fth5YQSzLUqp9AkjwfT4kZkoq63yLmcsA8=2FOp8O?= =?us-ascii?Q?7HTLVZ2NunVc92h8ypjjY6YZt=2FEhPB+CGhjenGu?= =?us-ascii?Q?ge2QNhpWTr9pa7PiTOOdKmvl=2FnlPu1ANNQQ=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 91649 Subject: [ruby-core:91649] [Ruby trunk Bug#15629] super_method fails on binded/unbinded/cloned methods 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #15629 has been reported by wanabe (_ wanabe). ---------------------------------------- Bug #15629: super_method fails on binded/unbinded/cloned methods https://bugs.ruby-lang.org/issues/15629 * Author: wanabe (_ wanabe) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- derived from #13973: ``` module A def foo end end module B def foo end end class C include A include B end c = C.new m1 = c.method(:foo) p m1.super_method # => # p m1.clone.super_method # => nil p m1.unbind.super_method # => nil m2 = C.instance_method(:foo) p m2.super_method # => # p m2.clone.super_method # => nil p m2.bind(c).super_method # => nil ``` `super_method` of binded/unbinded/cloned method should be `super_method` of original method, shouldn't it? -- https://bugs.ruby-lang.org/