Project

General

Profile

Backport #2793

inherited hook now runs before Class.new block

Added by bitsweat (Jeremy Daer) over 9 years ago. Updated 7 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
[ruby-core:28344]

Description

=begin

class A; def self.inherited(foo) foo.bar end end
=> nil
Class.new(A) { def self.bar; 'bar' end }

# 1.8.7
=> #Class:0x1003452f0

# 1.8.8 (regression or backport?)
NoMethodError: undefined method `bar' for #Class:0x1003470a0

# 1.9.2
NoMethodError: undefined method `bar' for #Class:0x0000010107daa8
=end

History

#1

Updated by wycats (Yehuda Katz) over 9 years ago

=begin
In my opinion, 1.8.8 should reliably run 1.8.7 applications, so this should be reverted :)
=end

#2

Updated by jeremyevans0 (Jeremy Evans) 7 days ago

  • ruby -v deleted (ruby 1.8.8dev (2010-02-24 revision 26634) [i386-darwin10.2.0])
  • Target version deleted (Ruby 1.8.8)
  • Status changed from Open to Closed
  • Description updated (diff)
  • Project changed from Ruby 1.8 to Backport187
  • Tracker changed from Bug to Backport

Also available in: Atom PDF