Skip to content

Implementation for NSIndexSet.copy(with:) #611

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

Merged
merged 1 commit into from
Sep 22, 2016

Conversation

gabhaska
Copy link
Contributor

No description provided.

}

//Test copy operation of NSIndexSet case which is immutable
let selfIndexSet:NSIndexSet = NSIndexSet(indexesIn:range)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the missing whitespaces here

@gabhaska
Copy link
Contributor Author

gabhaska commented Sep 7, 2016

@pushkarnk Thank you for the review. Changes done as suggested.

@parkera
Copy link
Contributor

parkera commented Sep 12, 2016

@swift-ci please test

let indexSet = NSIndexSet()
indexSet._ranges = self._ranges
indexSet._count = self._count
return indexSet
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why wouldn't NSMutableIndexSet just override this and do the right thing, instead of having the superclass know about its subclass?

@gabhaska
Copy link
Contributor Author

@parkera I agree with your suggestion. I have addressed the same. Please review

@parkera
Copy link
Contributor

parkera commented Sep 22, 2016

@swift-ci please test and merge

@swift-ci swift-ci merged commit aea8c0b into swiftlang:master Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants