Actions
Bug #7732
closedrefinements: super() in define_method => stack level too deep (SystemStackError)
    Bug #7732:
    refinements: super() in define_method => stack level too deep (SystemStackError)
  
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) almost 13 years ago
          Updated by shugo (Shugo Maeda) almost 13 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