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

Fix last optional element to be retained as an optional index while folding #841

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

l46kok
Copy link
Collaborator

@l46kok l46kok commented Sep 19, 2023

Folding [?optional.none(), ?x] should result in [?x]. Currently, this folds into [x] because the optional index is added as 1 in the list when it should be 0.

@TristonianJones TristonianJones merged commit 89b799e into google:master Sep 19, 2023
2 checks passed
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