I'm not sure, this is the same case of 'converting non-escaping value to '() -> Void' may allow it to escape' because in the example the `f` param is outter function type is escaping, the problem seems some confusion when it sees the inner fn type also with @ escaping. So in my understanding if @ escaping is allowed in this inner parameter position, I would expect this to type check correctly. Just asking to make sure what would be the expected behavior or if I'm missing something...
I think the diagnostic here should be about the destination of an assignment (`callback`) instead of source of it - `f`, the fact that there is a mismatch between escapiness in an argument of the function type.
Additional Detail from JIRA
md5: 0bea57816da6c676b14297bdbe7dcf73
Issue Description:
The following program produces the
following inaccurate diagnostic:
The suggested replacement only worsens the problem.
I would expect to see a message like:
which is the one produced by
The text was updated successfully, but these errors were encountered: