Project

General

Profile

Actions

Bug #7732

closed

refinements: super() in define_method => stack level too deep (SystemStackError)

Added by sowcow (Alexander K.) about 11 years ago. Updated about 11 years ago.

Status:
Rejected
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-12-01 trunk 38126)
Backport:
[ruby-core:51588]

Description

class Any
end

module Bug
refine Any do
define_method :to_s do
super()
end
end
end

using Bug
p Any.new.to_s # stack level too deep (SystemStackError)

other example and workaround solution https://gist.github.com/4603064

Updated by shugo (Shugo Maeda) about 11 years ago

  • Status changed from Open to Rejected
  • Assignee set to shugo (Shugo Maeda)

sowcow (Alexander Koynov) wrote:

using Bug
p Any.new.to_s # stack level too deep (SystemStackError)

Duplicate with #7643.

Actions

Also available in: Atom PDF

Like0
Like0