[#62904] [ruby-trunk - Feature #9894] [Open] [RFC] README.EXT: document rb_gc_register_mark_object — normalperson@...
Issue #9894 has been reported by Eric Wong.
3 messages
2014/06/02
[#63321] [ANN] ElixirConf 2014 - Don't Miss Jos辿 Valim and Dave Thomas — Jim Freeze <jimfreeze@...>
Just a few more weeks until ElixirConf 2014!
6 messages
2014/06/24
[#63391] Access Modifiers (Internal Interfaces) — Daniel da Silva Ferreira <danieldasilvaferreira@...>
Hi,
3 messages
2014/06/28
[ruby-core:62947] [ruby-trunk - Feature #8546] [Closed] super errors in UnboundMethods
From:
nobu@...
Date:
2014-06-05 15:25:57 UTC
List:
ruby-core #62947
Issue #8546 has been updated by Nobuyoshi Nakada.
Description updated
Status changed from Open to Closed
Fixed in 2.1.
----------------------------------------
Feature #8546: super errors in UnboundMethods
https://bugs.ruby-lang.org/issues/8546#change-47048
* Author: Jim Gay
* Status: Closed
* Priority: Normal
* Assignee:
* Category:
* Target version:
----------------------------------------
`UnboundMethod`s are unable to call `super`
~~~ruby
module M
def hello
puts "hello from M"
end
end
class O
def hello
puts "hello"
end
end
o = O.new
o.hello #=> "hello"
M.instance_method(:hello).bind(o).call #=> "hello from M"
module M
def hello
super
end
end
M.instance_method(:hello).bind(o).call #=> TypeError: self has wrong type to call super in this context: O (expected M)}))
~~~
Given that the non-super method works, I would expect super to work.
--
https://bugs.ruby-lang.org/