⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (226 Bytes)
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)
Loading...