Skip to content

Sema: fix for 61440 (lib/AST/GenericEnvironment) no generic environme… #65434

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
Apr 26, 2023
Merged

Sema: fix for 61440 (lib/AST/GenericEnvironment) no generic environme… #65434

merged 1 commit into from
Apr 26, 2023

Conversation

jreference
Copy link

…nt provided for type with type parameter

Instead of trying to map an element type of a subscriptDecl into it's parent context which causes an assert to fail (e.g. The parent context might not have a generic env). This change uses the generic environment of the subscriptDecl itself.

Resolves #61440

@slavapestov
Copy link
Contributor

@swift-ci Please smoke test and merge

@xedin xedin removed their request for review April 26, 2023 16:56
// RUN: %target-typecheck-verify-swift


protocol P
Copy link
Contributor

Choose a reason for hiding this comment

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

I just noticed the formatting in this file is a bit inconsistent. Do you mind fixing it?

@swift-ci swift-ci merged commit 2ad1589 into swiftlang:main Apr 26, 2023
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.

(lib/AST/GenericEnvironment) no generic environment provided for type with type parameters!
3 participants