You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The escaping 'analysis' is done in Sema and is very simplistic (and thus excludes many otherwise valid programs). We can make it smarter without breaking source, and that's worth pursuing some. I don't know if we will make it in time for 3.0, but that would be a good stretch goal.
Instead of changing local functions to have an 'escapingness', we can fix this in a source compatible way by extending the analysis to look at transitive closure formation.
Environment
Swift 6f743db
Additional Detail from JIRA
md5: 201464737036e6362607328dd3c439c0
is duplicated by:
relates to:
self
in local function passed as@escaping
Issue Description:
The following code fails to compile, as the reference to 'callback' in 'nestedFunc()' is considered possibly-escaping.
The text was updated successfully, but these errors were encountered: