Skip to content

What should happen if the same member is both required and provided? #67

@LeaVerou

Description

@LeaVerou

Consider:

protocol P {
	requires a;
	a () { /* elided */ }
}

What should happen?

Options:

  1. Error
  2. P essentially has no required members, as it is trivially satisfying itself (as a degenerate case of Can provided members satisfy other protocols? #61)

I’m personally leaning towards 2, but I suspect @ljharb @michaelficarra may have a different opinion.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions