[#70257] [Ruby trunk - Feature #11420] [Open] Introduce ID key table into MRI — ko1@...

Issue #11420 has been reported by Koichi Sasada.

11 messages 2015/08/06

[ruby-core:70539] [Ruby trunk - Bug #11476] [Open] Methods defined in Refinements cannot be called via send

From: ronnie@...
Date: 2015-08-22 00:05:02 UTC
List: ruby-core #70539
Issue #11476 has been reported by Akira Matsuda.

----------------------------------------
Bug #11476: Methods defined in Refinements cannot be called via send
https://bugs.ruby-lang.org/issues/11476

* Author: Akira Matsuda
* Status: Open
* Priority: Normal
* Assignee: Shugo Maeda
* ruby -v: ruby 2.3.0dev (2015-08-22 trunk 51660) [x86_64-darwin14]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
~~~
class C end

module M
  refine C do
    def a() p:hello end
    def b() p:world end
  end
end

using M

C.new.a
C.new.send :b
~~~

~~~
% ruby -v t.rb
ruby 2.3.0dev (2015-08-22 trunk 51660) [x86_64-darwin14]
:hello
t.rb:13:in `<main>': undefined method `b' for #<C:0x007f86c9a12af0> (NoMethodError)
~~~



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next