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

Fix name lookup via trait extensions #1077

Merged
merged 5 commits into from
Oct 11, 2023
Merged

Conversation

kyouko-taiga
Copy link
Contributor

No description provided.

This method had the wrong semantics, as it would only return a
non-nil result for requirements, not arbitrary members, which may
be declared in a trait extension. This commit replaces it with
`TypedProgram.traitDefining(_:)` which has the appropriate semantics.
@kyouko-taiga kyouko-taiga linked an issue Oct 11, 2023 that may be closed by this pull request
@kyouko-taiga kyouko-taiga merged commit 92f2b69 into main Oct 11, 2023
10 checks passed
@kyouko-taiga kyouko-taiga deleted the members-in-trait-ext branch October 11, 2023 11:45
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.

Fix use of members declared in trait extensions
1 participant