[SR-708] error: cannot convert value of type '[A]' to expected argument type '[_]' #43323
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
Additional Detail from JIRA
md5: b6a7bfccdf145fb9929447f3e6e64035
Issue Description:
Unhelpful error points to wrong argument.
I get the error:
With the following code when the error is the block is incorrect closure for one with arguments.
If the case above the error can be fixed by changing the closure to `{ _ in }`
In some more complicated cases I have found an explicit return is needed in a closure that returns Void. I don't have that well minimised at this point though.
The text was updated successfully, but these errors were encountered: