[SR-11920] Bogus Warning When Invalid Protocol is Used in Existential Position #54339
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
good first issue
Good for newcomers
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 6a0184667d6dc91a903498b162ead4ab
Issue Description:
This warning's text makes no sense. `P` is not a dynamic protocol and may not be used in existential position. The wording of this diagnostic needs to be amended not to make reference to dynamism when a protocol may not be used in existential position.
The text was updated successfully, but these errors were encountered: