Skip to content

OrderedSet equality and hashCode bug #2002

Closed
@belluzj

Description

@belluzj

What happened

OrderedSet instances seem to not be equal and to have different hashCode() values despite containing the same elements, depending on how we got to the set of elements.

Set behaves as expected in the same scenario.

How to reproduce

https://jsfiddle.net/7xwu6c49/1/

image

It works with Set though:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions