[SR-13936] Misleading diagnostic on trying to initialize CGRect with with Float values. #56333
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: a3d485f2aa1d2e53ccf0a2f7f88c81eb
Issue Description:
When initiating a CGRect with Float type variables:
the error message says:
The "Fix" option is simply removing (x: float, y: float, width: float, height: float), which isn't correct and confuses programmers.
The text was updated successfully, but these errors were encountered: