Skip to content
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

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

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

hborla
Copy link
Member

@hborla hborla commented Jun 13, 2023

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.

Resolves #66502, #66125

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.
@hborla
Copy link
Member Author

hborla commented Jun 13, 2023

@swift-ci please smoke test

Copy link
Member

@xedin xedin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes should cover #66125 too, right?

@hborla hborla merged commit 76ee456 into apple:main Jun 13, 2023
3 checks passed
@hborla
Copy link
Member Author

hborla commented Jun 13, 2023

These changes should cover #66125 too, right?

Yes!

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.

"Ambiguous without more context" using parameter packs and key-paths
3 participants