[SR-2843] P1 & P2.Type should be warned #45437
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
improvement
parser
Area → compiler: The legacy C++ parser
Additional Detail from JIRA
md5: fbd582e6c946f2b68fd9f11d57aa8e9b
Issue Description:
These constructs are very confusing for me:
We should warn with fix-it to enclose protocol composition with parens. (e.g.
(P1 & P2).Type
)Or reject them with error message such as:
The text was updated successfully, but these errors were encountered: