Skip to content

[SR-6918] ambiguous reference to member error with conditional conformance and subprotocol #49467

@rdingman

Description

@rdingman
Previous ID SR-6918
Radar rdar://problem/39193393
Original Reporter @rdingman
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Xcode 9.3 beta

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, DiagnosticsQoI
Assignee @rdingman
Priority Medium

md5: 12f73c06261b39fb3e0284b3416f78de

Issue Description:

These seems like it should work, but please correct me if I am wrong. I'm getting a `ambiguous reference to member` error with a conditional conformance to a protocol P and using a subprotocol inheriting from protocol P when protocol P has a default implementation via a protocol extension.

The attached playground demonstrates what I'm running into.

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of Implementation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions