Array#uniq, Array#|, Array#&, Array#- should be implemented in terms of 
RubyHash to actually use #eql? method on objects an array contains
------------------------------------------------------------------------------------------------------------------------------------------

                 Key: JRUBY-1209
                 URL: http://jira.codehaus.org/browse/JRUBY-1209
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.0.0
            Reporter: Marcin Mielżyński
            Assignee: Thomas E Enebo


class A
    def hash
        0
    end

    def eql? a
        true
    end
end

p [A.new,A.new].uniq
p [A.new] | [A.new]
p [A.new] & [A.new]
p [A.new] - [A.new]

Should produce:

[#<A:0x2840268>]
[#<A:0x28401c8>]
[#<A:0x2840128>]
[]


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to