Skip to content

[stdlib] Add compatibility typealias for CountablePartialRangeFrom #15989

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
Apr 17, 2018

Conversation

airspeedswift
Copy link
Member

These type aliases for partial ranges were missed in the removal of CountableRange

@airspeedswift
Copy link
Member Author

@swift-ci please test


@available(*, deprecated: 4.2, renamed: "PartialRangeUpTo")
public typealias CountablePartialRangeUpTo<Bound: Strideable> = PartialRangeUpTo<Bound>
where Bound.Stride : SignedInteger
Copy link
Member

Choose a reason for hiding this comment

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

I don't think these two ever existed… It was just 5... that was countable, right?

Copy link
Member

Choose a reason for hiding this comment

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

i.e. Just CountablePartialRangeFrom needs to be an alias.

Copy link
Member Author

Choose a reason for hiding this comment

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

ohhhh right.... yeah, because that is the only one that can be a sequence cos it has a starting point.

That makes me slightly less embarrassed to have forgotten to do this.

@airspeedswift
Copy link
Member Author

@swift-ci please smoke test

@airspeedswift airspeedswift changed the title [stdlib] Add compatibility typealias for CountablePartialRange{From,Through,UpTo} [stdlib] Add compatibility typealias for CountablePartialRangeFrom Apr 17, 2018
@airspeedswift airspeedswift merged commit ca7aea0 into swiftlang:master Apr 17, 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.

2 participants