From: Joseph Jones Date: 2015-12-17T21:12:48-07:00 Subject: [ruby-core:72319] [Ruby trunk - Bug #11809] [Assigned] method_missing should not be refined --567387c0_76272110_16c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Joseph Jones liked your message with Boxer. On December 12, 2015 at 08:01= :34 MST, shugo=40ruby-lang.org wrote:Issue =2311809 has been reported by = Shugo Maeda.----------------------------------------Bug =2311809: method=5F= missing should not be refinedhttps://bugs.ruby-lang.org/issues/11809* Aut= hor: Shugo Maeda* Status: Assigned* Priority: Normal* Assignee: Shugo Mae= da* ruby -v: * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN------= ----------------------------------The following code prints =60=5B:Refine= ment, :abc=5D=60, but =60method=5Fmissing=60 should not be refined becaus= e it's indirect call.=60=60=60rubyclass =46ooendmodule Bar refine =46oo d= o def method=5Fmissing(mid, *args) p =5B:Refinement, mid, *args=5D end en= dendusing Bar=46oo.new.abc=60=60=60---=46iles----------------------------= ----never=5Frefine=5Fmethod=5Fmissing.diff (1.25 KB)-- https://bugs.ruby-= lang.org/ --567387c0_76272110_16c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joseph Jones liked your message with Boxer.


= On December 12, 2015 at 08:01:34 MST, shugo=40ruby-lang.org wrote:
Issue =2311809 has been repo= rted by Shugo Maeda.

----------------------------------------<= br />Bug =2311809: method=5Fmissing should not be refined
https://bu= gs.ruby-lang.org/issues/11809

* Author: Shugo Maeda
* Sta= tus: Assigned
* Priority: Normal
* Assignee: Shugo Maeda
*= ruby -v:
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN----------------------------------------
The following code print= s =60=5B:Refinement, :abc=5D=60, but =60method=5Fmissing=60 should not be= refined because it's indirect call.

=60=60=60ruby
class = =46oo
end

module Bar
refine =46oo do
def= method=5Fmissing(mid, *args)
p =5B:Refinement, mid, *args=5D<= br /> end
end
end

using Bar

=46oo.ne= w.abc
=60=60=60


---=46iles-------------------------= -------
never=5Frefine=5Fmethod=5Fmissing.diff (1.25 KB)

=
--
https://bugs.ruby-lang.org/
= --567387c0_76272110_16c--