-
Notifications
You must be signed in to change notification settings - Fork 109
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
Make run
return Never
#150
Conversation
If an API method is designed to never return, it should be marked as returning `Never`. This way Swift will warn you if you add code after a call to such a method.
Can one of the admins verify this patch? |
3 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
@swift-server-bot test this please |
Note: Other |
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.
LGTM
Note that this is API semver major. Which probably triggers the errors. I'll turn the PR into an Issue. |
thanks @helje5 we are not at 1.0 yet, so this should be fine imo @fabianfett wdyt? |
I've created #151 to track this. |
@tomerd I think this would be a great addition and something we should get in before |
If an API method is designed to never return, it should be marked as returning
Never
. This way Swift will warn you if you add code after a call to such a method.