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

Needs @discardableResult added to func stub #202

Closed
mrkite opened this issue Sep 12, 2016 · 3 comments
Closed

Needs @discardableResult added to func stub #202

mrkite opened this issue Sep 12, 2016 · 3 comments

Comments

@mrkite
Copy link
Contributor

mrkite commented Sep 12, 2016

Xcode 8 throws tons of warnings along the lines of "Result of call to 'stub(condition:response:)' is unused".

Since ignoring the return value is totally fine if you don't intend to call removeStub, you should mark the function with @discardableResult and save us from the warning spam.

@Ashton-W
Copy link
Collaborator

What Seift versions are compatible with that annotation?

A Pull Request would be great :)

@ikesyo
Copy link
Collaborator

ikesyo commented Sep 13, 2016

What Swift versions are compatible with that annotation?

@discardableResult is for Swift 3, not compatible with Swift 2.3 (that is almost same as Swift 2.2).

@AliSoftware
Copy link
Owner

Closing this as it's been addressed a while ago by #203 😉

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 a pull request may close this issue.

4 participants