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

[7.x] Make Expectation constructor public #576

Merged
merged 1 commit into from
Jul 18, 2018
Merged

[7.x] Make Expectation constructor public #576

merged 1 commit into from
Jul 18, 2018

Conversation

ikesyo
Copy link
Member

@ikesyo ikesyo commented Jul 18, 2018

Cherry-picks #531 into 7.x-branch.

Closes #575.

Some libraries (like `RxNimble`) create their own expectations.

This [extension from RxNimble](https://github.com/RxSwiftCommunity/RxNimble/blob/602c14aae95db274004cc77ff1779a5feaf6f6fc/Source/Expectation%2BExt.swift#L4-L6) seems to have worked in earlier versions of Swift but not anymore:

> Initializer for struct 'Expectation<T>' must use "self.init(...)" or "self = ..." because it is not in module 'Nimble'
@ikesyo
Copy link
Member Author

ikesyo commented Jul 18, 2018

I'll merge this once the CI passes.

@ikesyo ikesyo merged commit 0c4ebf1 into 7.x-branch Jul 18, 2018
@ikesyo ikesyo deleted the 7.x-pr531 branch July 18, 2018 06:57
@ashfurrow
Copy link
Member

Thanks!

Megal pushed a commit to Megal/Nimble that referenced this pull request Jul 31, 2019
[7.x] Make Expectation constructor public
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.

3 participants