[SR-5184] Confusing diagnostics with an escaping closure #47760
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
Environment
Xcode 9.0 beta (9M136h) with default Swift toolchain
Additional Detail from JIRA
md5: cec240dd4da017b9119a7c2b4a41bcbe
is duplicated by:
@escaping
when closure types conversion is failedIssue Description:
Having a closure in a tuple produces a confusing diagnostic message on assignment.
Example:
Produces the diagnostic:
When the actual reason is that we need to add `@escaping` to a closure parameter:
The text was updated successfully, but these errors were encountered: