Skip to content

Better enforce GenericFunctionType TypeVariableType invariant #64335

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 1 commit into from
Mar 14, 2023

Conversation

hamishknight
Copy link
Contributor

Enforce that we don't have any type variables present in either the result or parameter types. To ensure the constraint system doesn't violate this invariant, refactor getTypeOfMemberReference slightly to avoid construction of a GenericFunctionType as a means of opening the generic parameters of the context for a VarDecl.

Enforce that we don't have any type variables
present in either the result or parameter types.
To ensure the constraint system doesn't violate
this invariant, refactor `getTypeOfMemberReference`
slightly to avoid construction of a
`GenericFunctionType` as a means of opening the
generic parameters of the context for a VarDecl.
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight
Copy link
Contributor Author

@swift-ci please test source compatibility

@hamishknight
Copy link
Contributor Author

Source compat failures unrelated

@hamishknight hamishknight merged commit ab3a8c3 into swiftlang:main Mar 14, 2023
@hamishknight hamishknight deleted the less-generic branch March 14, 2023 16:16
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