Skip to content

Sema: Fix case where witness thrown error type is a subtype of a type parameter #80963

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

slavapestov
Copy link
Contributor

In b300068, I changed the if condition here to check for the absence of type variables as well as type parameters. The correct condition is to actually not check for anything at all.

Fixes rdar://149438520.

… parameter

In b300068, I changed the `if`
condition here to check for the absence of type variables as well
as type parameters. The correct condition is to actually not
check for anything at all.

Fixes rdar://149438520.
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

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.

1 participant