Skip to content

Add @discardableResult to Scanner #1624

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

Merged
merged 1 commit into from
Oct 23, 2018
Merged

Add @discardableResult to Scanner #1624

merged 1 commit into from
Oct 23, 2018

Conversation

zayass
Copy link
Contributor

@zayass zayass commented Jul 9, 2018

On Darwin public methods with out parameters not produce "result call unused" warning
So using @discardableResult here is behave more like Darwin Foundation

@spevans
Copy link
Contributor

spevans commented Jul 11, 2018

@swift-ci please test

@millenomi
Copy link
Contributor

@swift-ci please test and merge

@@ -579,6 +589,7 @@ extension Scanner {
}
}

@discardableString
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like a typo, should be @discardableResult.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh. Really stupid typo. Fixed

On Darwin public methods with out parameters not produce "result call unused" warning
So using @discardableResult here is behave more like Darwin Foundation
@zayass
Copy link
Contributor Author

zayass commented Oct 16, 2018

@millenomi Can you retest?

@spevans
Copy link
Contributor

spevans commented Oct 16, 2018

@swift-ci test

1 similar comment
@spevans
Copy link
Contributor

spevans commented Oct 16, 2018

@swift-ci test

@zayass
Copy link
Contributor Author

zayass commented Oct 17, 2018

@spevans seems something works wrong with @swift-ci test

@alblue
Copy link
Contributor

alblue commented Oct 17, 2018

@swift-ci please test

@parkera parkera merged commit f5a076d into swiftlang:master Oct 23, 2018
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.

5 participants