Project

General

Profile

Bug #11385 ยป test.rb

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

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

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


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

puts a == b
    (1-1/1)