[SR-10195] Swift 5 has trouble inferring return type of closure for Data.withUnsafeMutableBytes #52595
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
macOS 10.14.4
Xcode 10.2
Additional Detail from JIRA
md5: 97d0c7477c9997a2f87954db79cf6866
Issue Description:
Swift 5.0 has trouble inferring the return type of a fairly simple closure.
Adding an explicit return type to the closure resolves the error.
The text was updated successfully, but these errors were encountered: