From c271ae115faa093cf17367686adbbb2f59e3c223 Mon Sep 17 00:00:00 2001 From: Zentrik Date: Thu, 4 Jan 2024 00:10:07 +0000 Subject: [PATCH] Fix preexisting bug --- src/Parser.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parser.jl b/src/Parser.jl index 1625c13..d9041d9 100644 --- a/src/Parser.jl +++ b/src/Parser.jl @@ -417,7 +417,7 @@ end # Workaround for slow dynamic dispatch for creating objects const DEFAULT_PARSERCONTEXT = ParserContext{Dict{String, Any}, Int64, true, nothing}() function _get_parsercontext(dicttype, inttype, allownan, null) - if dicttype == Dict{String, Any} && inttype == Int64 && allownan + if dicttype == Dict{String, Any} && inttype == Int64 && allownan && isnothing(null) DEFAULT_PARSERCONTEXT else ParserContext{unparameterize_type(dicttype), inttype, allownan, null}.instance