Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: props are not of type Comparable #149

Merged
merged 1 commit into from Aug 19, 2022
Merged

Conversation

felangel
Copy link
Owner

Status

READY

Breaking Changes

NO

Description

  • fix: props are not of type Comparable

@felangel felangel added the bug Something isn't working label Aug 19, 2022
@felangel felangel self-assigned this Aug 19, 2022
if (object is Set && object is! SplayTreeSet) {
// this is needed to have a consistent iteration order so that the produced
// hash is consistent independently of the Set insertion order
object = SplayTreeSet<dynamic>.from(object);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We just care about the sort order and SplayTreeSet requires objects to be Comparable so this PR simplifies things by just sorting the set similar to the Map implementation.

@felangel felangel merged commit c5f1bbe into master Aug 19, 2022
@felangel felangel deleted the fix/non-comparable-props branch August 19, 2022 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant