Project

General

Profile

Bug #11385 ยป test.rb

Code to recreate the bug - allenwq (Allen Wang), 07/22/2015 02:50 AM

 
1
class Something
2
  attr_accessor :friend
3
  def initialize(friend)
4
    self.friend = friend
5
  end
6

    
7
  def ==(other)
8
    friend == other.friend
9
  end
10
end
11

    
12

    
13
a = Something.new(nil)
14
b = Something.new([a])
15
a.friend = [b]
16

    
17
puts a == b