From: shugo@... Date: 2015-12-12T15:01:34+00:00 Subject: [ruby-core:72080] [Ruby trunk - Bug #11809] [Assigned] method_missing should not be refined Issue #11809 has been reported by Shugo Maeda. ---------------------------------------- Bug #11809: method_missing should not be refined https://bugs.ruby-lang.org/issues/11809 * Author: Shugo Maeda * Status: Assigned * Priority: Normal * Assignee: Shugo Maeda * ruby -v: * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- 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/