Skip to content

[Type checker] Cope with null function/subscript types but not error types #21506

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

Conversation

DougGregor
Copy link
Member

We always ensure that functions and subscripts have
appropriately-shaped interface types, so the "error" check is
unnecessary. However, if we end up in a recursive-validation case, the
interface type might be null. Replace a check for the former with a
check for the latter.

Thanks @slavapestov.

…types.

We always ensure that functions and subscripts have
appropriately-shaped interface types, so the "error" check is
unnecessary. However, if we end up in a recursive-validation case, the
interface type *might* be null. Replace a check for the former with a
check for the latter.

Thanks @slavapestov.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit c12e062 into swiftlang:master Dec 21, 2018
@DougGregor DougGregor deleted the dynamic-replacement-ambiguity-cleanup branch January 7, 2019 02:55
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