Skip to content
New issue

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

[SR-2425] NsMutableIndexSet Enumerate Issue #45030

Closed
swift-ci opened this issue Aug 19, 2016 · 3 comments
Closed

[SR-2425] NsMutableIndexSet Enumerate Issue #45030

swift-ci opened this issue Aug 19, 2016 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-2425
Radar rdar://problem/25607552
Original Reporter pshivakumar (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

iOS 10 , Xcode Beta 4, Swift 3

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, ClangImporter
Assignee None
Priority Medium

md5: cef5cb0f109e1eaad5ec74d2737ec4b1

duplicates:

  • SR-1408 NSArray indexesOfObjectsPassingTest cannot be called in Swift 3

Issue Description:

let missingSections = NSMutableIndexSet()

missingSections.enumerate { idx, stop in
let indexPath = NSIndexPath(forItem: 0, inSection: idx)
let layoutAttributes = self.layoutAttributesForSupplementaryViewOfKind(UICollectionElementKindSectionHeader, atIndexPath: indexPath)
superAttributes.addObject(layoutAttributes!)
}

@belkadan
Copy link
Contributor

Sorry, is there a bug here or not?

@swift-ci
Copy link
Collaborator Author

Comment by Shiva Kumar (JIRA)

missingSections.enumerate throws a error in Xcode beta 4 "I get the Swift compiler error "Ambiguous use of .enumerate"

@belkadan
Copy link
Contributor

Ah, yes, thanks. You can work around this by not using trailing closures.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

2 participants