We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
macOS 10.11.5, Xcode 8 beta (8S128d), Apple Swift version 3.0 (swiftlang-800.0.30 clang-800.0.24)
md5: 6fdfa333950314f08433920ed9f2a390
duplicates:
Issue Description:
In Swift 3.0 the following code:
import Photos let allAssets = PHAsset.fetchAssets(with: nil) allAssets.enumerateObjects { (asset, index, stop) in print("creationDate: \(asset.creationDate)") }
Results in the compiler error "Ambiguous use of 'enumerateObjects'". This worked fine in Swift 2.2.
The only way to get the code to compile is to not use the trailing closure syntax:
import Photos let allAssets = PHAsset.fetchAssets(with: nil) allAssets.enumerateObjects ({ (asset, index, stop) in print("creationDate: \(asset.creationDate)") })
The text was updated successfully, but these errors were encountered:
Same basic issue as SR-1408.
Sorry, something went wrong.
No branches or pull requests
Environment
macOS 10.11.5, Xcode 8 beta (8S128d), Apple Swift version 3.0 (swiftlang-800.0.30 clang-800.0.24)
Additional Detail from JIRA
md5: 6fdfa333950314f08433920ed9f2a390
duplicates:
Issue Description:
In Swift 3.0 the following code:
Results in the compiler error "Ambiguous use of 'enumerateObjects'". This worked fine in Swift 2.2.
The only way to get the code to compile is to not use the trailing closure syntax:
The text was updated successfully, but these errors were encountered: