Skip to content

NSIndexPath: Make compatible with Darwin. #1617

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 2 commits into from
Jun 26, 2018

Conversation

spevans
Copy link
Contributor

@spevans spevans commented Jun 25, 2018

  • init(indexes:length:): Fix method signatue and allow nil pointer
    with 0 length to match Darwin.

  • Implement copy(with:)

  • Mark getIndex(_:range:) as unavailable (deprecated in Darwin).

- init(indexes:length:): Fix method signatue and allow nil pointer
  with 0 length to match Darwin.

- Implement copy(with:)

- Mark getIndex(_:range:) as unavailable (deprecated in Darwin).
@spevans
Copy link
Contributor Author

spevans commented Jun 25, 2018

@swift-ci please test

@@ -59,12 +59,19 @@ class TestIndexPath: XCTestCase {
("test_AnyHashableCreatedFromNSIndexPath", test_AnyHashableCreatedFromNSIndexPath),
("test_unconditionallyBridgeFromObjectiveC", test_unconditionallyBridgeFromObjectiveC),
("test_slice_1ary", test_slice_1ary),
("test_copy", test_copy)
Copy link
Contributor

Choose a reason for hiding this comment

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

This could use a comma at the end to prevent a subsequent git diff later on.

@spevans
Copy link
Contributor Author

spevans commented Jun 26, 2018

@swift-ci please test

1 similar comment
@spevans
Copy link
Contributor Author

spevans commented Jun 26, 2018

@swift-ci please test

@spevans spevans requested a review from parkera June 26, 2018 16:57
Copy link
Contributor

@parkera parkera left a comment

Choose a reason for hiding this comment

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

Looks great!

@spevans
Copy link
Contributor Author

spevans commented Jun 26, 2018

@swift-ci please test and merge

@swift-ci swift-ci merged commit d0f2b20 into swiftlang:master Jun 26, 2018
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