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

Allow extend adapt of non-class types. #4544

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

zygoloid
Copy link
Contributor

Stop rejecting extend adapt of non-class types such as struct and tuple. These don't actually work just yet because name lookup into struct and tuple types is a special case that doesn't handle adapters, but this gets us a bit closer.

This also slightly improves error recovery for name lookup into an invalid scope.

Copy link
Contributor

@jonmeow jonmeow left a comment

Choose a reason for hiding this comment

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

LG

@jonmeow jonmeow added this pull request to the merge queue Nov 18, 2024
Merged via the queue into carbon-language:trunk with commit 145f878 Nov 18, 2024
10 checks passed
@zygoloid zygoloid deleted the toolchain-adapt-non-class branch November 20, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants