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 JSON.Parser to have an explicit error type. #19

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

jemc
Copy link
Contributor

@jemc jemc commented Jun 10, 2024

Prior to this commit, the library wasn't compiling with the latest version of Savi because latest Savi allows for error values with a designated type, but this function was self-recursive and thus couldn't confidently infer the error type.

This commit resolves the ambiguity by adding :errors None.

Prior to this commit, the library wasn't compiling with the latest
version of Savi because latest Savi allows for error values with
a designated type, but this function was self-recursive and thus
couldn't confidently infer the error type.

This commit resolves the ambiguity by adding `:errors None`.
@jemc jemc self-assigned this Jun 10, 2024
@jemc jemc merged commit ec4c3a2 into main Jun 10, 2024
7 checks passed
@jemc jemc deleted the fix/error-type-explicit branch June 10, 2024 13:51
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.

1 participant