Skip to content

[5.9][GenericEnvironment] Don't apply outer context substitutions before type.subst in mapTypeIntoContext. #66597

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

hborla
Copy link
Member

@hborla hborla commented Jun 13, 2023

type.subst in mapTypeIntoContext.

The outer context substitutions are already applied when invoking
QueryInterfaceTypeSubstitutions. Applying the context substitutions
before subst also causes problems because QueryInterfaceTypeSubstitutions
will return a null type if given an archetype, which manifested with
opened pack element environments.

(cherry picked from commit d6fe625)
@hborla hborla requested a review from a team as a code owner June 13, 2023 14:15
@hborla
Copy link
Member Author

hborla commented Jun 13, 2023

@swift-ci please test

@hborla hborla merged commit 26d0973 into swiftlang:release/5.9 Jun 13, 2023
@hborla hborla deleted the 5.9-generic-env-context-substitutions branch June 13, 2023 19:02
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