[SR-9793] Inappropriate diagnostics for access level of protocol witness declared in extension #52218
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
Additional Detail from JIRA
md5: ba9e8e59c03a898fcdd3ceb5bd065720
Issue Description:
If the access level of a protocol witness does not satisfies a requirement, the compiler suggests marking it as the required level. This is not suitable when the witness is in an extension that forbids the required level.
For example, in the following case, the note suggests marking foo() as 'internal'. However, it would conflict with 'private' extension.
The text was updated successfully, but these errors were encountered: