diff --git a/src/Accessors.jl b/src/Accessors.jl index e386fd83..e2049321 100644 --- a/src/Accessors.jl +++ b/src/Accessors.jl @@ -26,7 +26,7 @@ include("../ext/AccessorsLinearAlgebraExt.jl") include("../ext/AccessorsTestExt.jl") function __init__() - if isdefined(Base.Experimental, :register_error_hint) + if VERSION >= 1.9 Base.Experimental.register_error_hint(MethodError) do io, exc, argtypes, kwargs if exc.f === insert && argtypes[2] <: Accessors.DynamicIndexLens println(io)