Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
md5: e7313a190de8c10a8076466706410906
Issue Description:
The deprecation warning for flatMap() doesn't specify which version of Swift the change takes effect from:
@available(*, deprecated, renamed: "compactMap(_:)", message: "Please use compactMap(_:) for the case where closure returns an optional value")
This makes it impossible to write a polyfill for older Swift versions (such as the code below) without triggering the warning in Xcode 9.3:
#if !swift(>=4.1) extension Array { func compactMap<T>(_ transform: (Element) throws -> T?) rethrows -> [T] { return try flatMap(transform) } } #endif
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
#14605
For 4.1 branch: #14615
moiseev
No branches or pull requests
Additional Detail from JIRA
md5: e7313a190de8c10a8076466706410906
Issue Description:
The deprecation warning for flatMap() doesn't specify which version of Swift the change takes effect from:
This makes it impossible to write a polyfill for older Swift versions (such as the code below) without triggering the warning in Xcode 9.3:
The text was updated successfully, but these errors were encountered: