Skip to content

[stdlib] Add conditional Lazy conformance to Slice when Base is Lazy #13242

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
Dec 4, 2017

Conversation

airspeedswift
Copy link
Member

This is a bug fix for slices of lazy collections, which currently revert to being eager. Now we have conditional conformance, we can conditionally conform Slice to be lazy when its Base is lazy.

Note, LazyCollectionProtocol might end up going away too in which case this code can be simplified.

@airspeedswift
Copy link
Member Author

@swift-ci please test

@airspeedswift airspeedswift merged commit fde0d92 into swiftlang:master Dec 4, 2017
@airspeedswift airspeedswift deleted the lazy-commute branch December 4, 2017 16:54
@DougGregor
Copy link
Member

Awesome, thank you!

davidungar pushed a commit to davidungar/swift that referenced this pull request Dec 5, 2017
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