Project

General

Profile

Bug #11385

Updated by nobu (Nobuyoshi Nakada) almost 9 years ago

```ruby 
 class `class Something 
   attr_accessor :friend 
   def initialize(friend) 
     self.friend = friend 
   end 

   def ==(other) 
     friend == other.friend 
   end 
 end 


 a = Something.new([]) 
 b = Something.new([a]) 
 a.friend = [b] 

 a == b 
 ``` b` 

 The above code returns true on OS X and Linux, by right it should give me a exception of stack level too deep. 

 ( And on windows I can see the expected exception excetpion )

Back