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

Allow beAKindOf and beAnInstanceOf to nest inside of other matchers #1173

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

younata
Copy link
Member

@younata younata commented Nov 5, 2024

When you nest beAKindOf and beAnInstanceOf inside of other matchers (such as beSuccess), you get a build error.

This changes the definition of those 2 matchers to allow nesting, without otherwise changing their logic.

In my opinion, this is more of a compiler bug than anything else, but fixing it on Nimble's end is simple enough.

@younata younata merged commit 856b940 into main Nov 5, 2024
13 of 16 checks passed
@younata younata deleted the allow_nesting_in_beakindof branch November 5, 2024 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant