[SR-6607] Incorrect ambiguous reference with constrained protocol extension #49157
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
type checker
Area → compiler: Semantic analysis
Attachment: Download
Additional Detail from JIRA
md5: a378bee46a951e772c9450824248708b
Issue Description:
Hi there, long time Swifter, first time poster. I couldn't find a bug matching this when I searched, but feel free to correct me if any of this wrong. 🙂
I believe this is a bug in Swift, resulting in an error `Ambiguous reference to member` when the two functions in constrained extensions (one protocol and one concrete) don't have the same overload.
I've attached a playground with a reproducible example.
Thanks a lot!
The text was updated successfully, but these errors were encountered: