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

Assertion bug: 'a is! Set && b is! Set': iterableEquals doesn't support Sets #196

Open
franzaps opened this issue Dec 30, 2024 · 1 comment
Assignees
Labels
bug Something isn't working waiting for response Waiting for follow up

Comments

@franzaps
Copy link

I have a nested object that, when compared, calls objectsEquals internally and in turn iterableEquals.

In my case, a is Iterable and b is Set, so the following code calls iterableEquals:

  } else if (a is Set && b is Set) {
    return setEquals(a, b);
  } else if (a is Iterable && b is Iterable) {
    return iterableEquals(a, b);
  } 

However, inside iterableEquals I get the assertion error because 'a is! Set && b is! Set' is true.

@felangel
Copy link
Owner

felangel commented Jan 2, 2025

Hi @franzaps 👋
Thanks for opening an issue!

Can you please provide a minimal reproduction sample? I'm happy to push a fix asap!

@felangel felangel added bug Something isn't working waiting for response Waiting for follow up labels Jan 2, 2025
@felangel felangel self-assigned this Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for response Waiting for follow up
Projects
None yet
Development

No branches or pull requests

2 participants