[SR-14666] A protocol that declares conformance to a protocol with a constrained associatedtype must re-declare that associatedtype in order for implementers to compile #57017
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
This is an issue both in a playground, in a project, and when compiling via the command line via swiftc.
Xcode 12.5 (12E262)
Swift 5.4
2020 M1 MacBook Air
Additional Detail from JIRA
md5: 2167a25b1b07254732a8dc9e526ba999
Issue Description:
The code block below displays the issue. The protocol A declares a constrained associatedtype. In order for Implementer to compile, that same associatedtype must be re-declared in protocol B, which declares conformance to protocol A. Re-declaring the associatedtype provokes a warning, and performing the warning's fix-it results in a build failure in Implementer, as well as a new, different warning on the declaration of B.
The text was updated successfully, but these errors were encountered: