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

[overlay] Use precondition instead of fatalError in DateInterval initializer #12743

Closed
wants to merge 1 commit into from
Closed

[overlay] Use precondition instead of fatalError in DateInterval initializer #12743

wants to merge 1 commit into from

Conversation

ogres
Copy link
Contributor

@ogres ogres commented Nov 3, 2017

Comment of the function says:

/// - precondition: end >= start

but it actually uses if -> fatalError instead of precondition,

Other functions of DateInterval use precondition-s, only this one uses fatalError, probably makes sense to change it as well.

Similar to apple/swift-corelibs-foundation#1292

@parkera

@parkera
Copy link
Member

parkera commented Nov 3, 2017

Looks good to me, thanks.

@ogres
Copy link
Contributor Author

ogres commented Nov 6, 2017

@parkera what about "test and merge" 🤔 ?

@CodaFi
Copy link
Member

CodaFi commented Nov 8, 2017

@swift-ci please smoke test

@CodaFi
Copy link
Member

CodaFi commented Nov 17, 2019

Rebased and updated this patch. Going to merge it in #28317

So, so sorry we didn't get around to merging this at the time!

@CodaFi CodaFi closed this Nov 17, 2019
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.

None yet

3 participants