Skip to content

[Type checker] Handle 'rethrows' checks for single-parameter functions. #8980

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 2 commits into from
Apr 24, 2017

Conversation

DougGregor
Copy link
Member

The throw-checking code wasn't properly coping with functions that
take a single, labeled argument, due to the longstanding lie that
pretends that functions take a tuple argument vs. zero or more
separate arguments. Here, the lie manifests as spurious "call can
throw, but is not marked as such" errors.

Fixes rdar://problem/31794932.

DougGregor and others added 2 commits April 24, 2017 15:49
The throw-checking code wasn't properly coping with functions that
take a single, labeled argument, due to the longstanding lie that
pretends that functions take a tuple argument vs. zero or more
separate arguments. Here, the lie manifests as spurious "call can
throw, but is not marked as such" errors.

Fixes rdar://problem/31794932.

(cherry picked from commit b07d995)
@DougGregor
Copy link
Member Author

@swift-ci please test and merge

@DougGregor DougGregor merged commit 54a3d41 into swift-4.0-branch Apr 24, 2017
@DougGregor DougGregor deleted the rethrow-single-arg-func-4.0 branch April 24, 2017 23:31
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.

2 participants