Skip to content

Conversation

danakj
Copy link
Contributor

@danakj danakj commented Oct 8, 2025

This tests that .Self in an interface generic parameter preserves the facet type information of the binding when returned, and allows compound member lookup back into that interface.

And add a failing-todo test that .Self gets implied constraints which can be satisfied through & for the facet type I(.Self) is part of.

@danakj danakj requested a review from a team as a code owner October 8, 2025 15:44
@danakj danakj requested review from dwblaikie and removed request for a team October 8, 2025 15:44
@danakj
Copy link
Contributor Author

danakj commented Oct 8, 2025

This is based on #5957, just the test-compound-self commit is new.

Rebased to trunk.

@danakj danakj requested review from josh11b and removed request for dwblaikie October 8, 2025 15:48
@danakj danakj force-pushed the test-compound-self branch from 44f9447 to 167f710 Compare October 8, 2025 16:07
@danakj danakj changed the title Add a test of compound lookup into .Self as an interface parameter and return type Add tests of .Self given for an interface parameter that has constraints Oct 8, 2025
@josh11b josh11b added this pull request to the merge queue Oct 8, 2025
Merged via the queue into carbon-language:trunk with commit fd74e49 Oct 8, 2025
9 checks passed
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