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

Forward impl declaration of an incomplete interface #5168

Open
wants to merge 20 commits into
base: trunk
Choose a base branch
from

Conversation

josh11b
Copy link
Contributor

@josh11b josh11b commented Mar 22, 2025

Revise rules for what is required and provided by declarations and definitions of interfaces and impls. In particular:

  • allow impl declarations of incomplete interfaces, and
  • shift from a "use the information from the type definition if it happens to be complete" model to a "only use the information from the definition in contexts where it is required to be defined or complete" model.

Resolves questions-for-leads issues #4566, #4672, #4579.

@josh11b josh11b added proposal A proposal proposal draft Proposal in draft, not ready for review labels Mar 22, 2025
@josh11b josh11b marked this pull request as ready for review March 22, 2025 17:27
@github-actions github-actions bot requested a review from chandlerc March 22, 2025 17:27
@github-actions github-actions bot added proposal rfc Proposal with request-for-comment sent out and removed proposal draft Proposal in draft, not ready for review labels Mar 22, 2025
josh11b added a commit to josh11b/carbon-lang that referenced this pull request Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal rfc Proposal with request-for-comment sent out proposal A proposal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant