Skip to content

[SR-6907] Add appropriate bounds to CountableClosedRange and CountableRange. #15513

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

Conversation

DougGregor
Copy link
Member

In Swift 4.1 and earlier, both CountableRange and CountableClosedRange required
their bound types to be Strideable with a Stride type that conforms to
SignedInteger. Those constraints were not present on the generic
typealiases that replaced these structs. Add them back now, which
fixes the GRDB source compatibility regression.

Fixes SR-6907 / rdar://problem/29066394.

@DougGregor
Copy link
Member Author

Only the last commit is relative to this PR; the rest are part of #15497.

@DougGregor
Copy link
Member Author

@swift-ci please test source compatibility

@DougGregor
Copy link
Member Author

Expecting a UPASS in the source compatibility suite for GRDB; everything else should be unchanged.

@DougGregor DougGregor changed the title [SR-6097] Add appropriate bounds to CountableClosedRange and CountableRange. [SR-6907] Add appropriate bounds to CountableClosedRange and CountableRange. Mar 26, 2018
Previously, both CountableRange and CountableClosedRange required
their bound types to be Strideable with a Stride type that conforms to
SignedInteger. Those constraints were not present on the generic
typealiases that replaced these structs. Add them back now, which
fixes the GRDB source compatibility regression.

Fixes https://bugs.swift.org/browse/SR-6907 / rdar://problem/29066394.
@DougGregor DougGregor force-pushed the range-typealias-bounds-sr-6907 branch from 2e9a021 to e0d423a Compare March 26, 2018 16:04
@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

@DougGregor
Copy link
Member Author

@swift-ci please smoke test

1 similar comment
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

Copy link
Member

@airspeedswift airspeedswift left a comment

Choose a reason for hiding this comment

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

Sorry Doug... LGTM

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