From b089736a8397f44e2e930fe6d47cc90f07384c3d Mon Sep 17 00:00:00 2001 From: Joe Eli McIlvain Date: Mon, 10 Jun 2024 06:42:53 -0700 Subject: [PATCH] Fix JSON.Parser to have an explicit error type. 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`. --- src/JSON.Parser.savi | 1 + 1 file changed, 1 insertion(+) diff --git a/src/JSON.Parser.savi b/src/JSON.Parser.savi index 290254e..111cb61 100644 --- a/src/JSON.Parser.savi +++ b/src/JSON.Parser.savi @@ -68,6 +68,7 @@ :fun ref _parse_data! :yields JSON.Token for None + :errors None @_skip_whitespace @_pre_token peeked = @_peek!