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
SR-3632 Swift is unable to properly infer the type of closures with inout parameters without specific type information.
relates to:
SR-3520 Generic function taking closure with inout parameter can result in a variety of compiler errors or EXC_BAD_ACCESS
Issue Description:
For whatever reason, you have to declare the closure signature with inout variables in Swift 3. You didn't in Swift 2. Example below. Also affected the new stdlib sequence functions.
Hm. I don't remember this ever working, even in Swift 2. (I believe you that it compiled, but I also remember getting errors sometimes, which makes me think it may not have been implemented correctly.) @slavapestov, do you know what changed here?
Attachment: Download
Additional Detail from JIRA
md5: 5e016df9563a1b6894b80711441939f1
is duplicated by:
relates to:
Issue Description:
For whatever reason, you have to declare the closure signature with inout variables in Swift 3. You didn't in Swift 2. Example below. Also affected the new stdlib sequence functions.
Swift 2:
Swift 3:
The text was updated successfully, but these errors were encountered: