From: nagachika00@... Date: 2015-12-13T03:53:47+00:00 Subject: [ruby-core:72091] [Ruby trunk - Bug #11809] method_missing should not be refined Issue #11809 has been updated by Tomoyuki Chikanaga. Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED r53060 introduce behavior change between 2.2 and 2.3. NEWS should be updated too. ---------------------------------------- Bug #11809: method_missing should not be refined https://bugs.ruby-lang.org/issues/11809#change-55507 * Author: Shugo Maeda * Status: Closed * Priority: Normal * Assignee: Shugo Maeda * ruby -v: * Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED ---------------------------------------- The following code prints `[:Refinement, :abc]`, but `method_missing` should not be refined because it's indirect call. ```ruby class Foo end module Bar refine Foo do def method_missing(mid, *args) p [:Refinement, mid, *args] end end end using Bar Foo.new.abc ``` ---Files-------------------------------- never_refine_method_missing.diff (1.25 KB) -- https://bugs.ruby-lang.org/