From bd341d2e2e40afbd3b2cbc8b2f21c29fb93f2932 Mon Sep 17 00:00:00 2001 From: Zentrik Date: Thu, 4 Jan 2024 00:13:31 +0000 Subject: [PATCH] Fix for Julia 1.0 --- src/Parser.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parser.jl b/src/Parser.jl index d9041d9..ca9f33a 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 && isnothing(null) + if dicttype == Dict{String, Any} && inttype == Int64 && allownan && null === nothing DEFAULT_PARSERCONTEXT else ParserContext{unparameterize_type(dicttype), inttype, allownan, null}.instance