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 equal compilation optionals #982

Merged
merged 3 commits into from
Apr 20, 2022

Conversation

younata
Copy link
Member

@younata younata commented Apr 19, 2022

This extends and solves #962 by doing what @ikesyo suggests as the fix.

Another possible fix would be to add public extensions of Array, Set, and Dictionary such that they can also use == or != with Optionals. I elected not to do that because I'd rather not change the behavior of these very common types just for Nimble. It felt way less riskier to bring back these matchers.

Maybe in the future, Swift will be enhanced again so that we can actually simplify these matchers.

Thanks @acecilia for bringing up this issue!

Copy link
Member

@jessesquires jessesquires left a comment

Choose a reason for hiding this comment

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

💯

Let's just fix the linter errors before merging. 😊

@younata younata force-pushed the fix-equal-compilation-optionals branch from 5687d81 to 6b0e5df Compare April 20, 2022 04:52
@younata younata enabled auto-merge (squash) April 20, 2022 04:55
@younata younata merged commit 0bb8a4e into Quick:main Apr 20, 2022
@younata younata deleted the fix-equal-compilation-optionals branch April 23, 2022 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants