We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
return
Swift 4.2
md5: b06324695f5e01392b38d15797b30528
relates to:
Issue Description:
func f(_: Never) -> Int {} 1:26: error: missing return in a function expected to return 'Int' func f(_: Never) -> Int {}
That shouldn't be an error. This function can never be called, so no return is actually needed.
The text was updated successfully, but these errors were encountered:
Swift should also warn if there is code in such a function (SR-8435).
Sorry, something went wrong.
PR: #20528
theblixguy
No branches or pull requests
Environment
Swift 4.2
Additional Detail from JIRA
md5: b06324695f5e01392b38d15797b30528
relates to:
Issue Description:
That shouldn't be an error. This function can never be called, so no
return
is actually needed.The text was updated successfully, but these errors were encountered: