-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
@swift-ci please test |
@swift-ci please test and merge |
Foundation/Scanner.swift
Outdated
@@ -579,6 +589,7 @@ extension Scanner { | |||
} | |||
} | |||
|
|||
@discardableString |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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
@millenomi Can you retest? |
@swift-ci test |
1 similar comment
@swift-ci test |
@spevans seems something works wrong with |
@swift-ci please test |
On Darwin public methods with out parameters not produce "result call unused" warning
So using @discardableResult here is behave more like Darwin Foundation