diff --git a/src/AbstractDifferentiation.jl b/src/AbstractDifferentiation.jl index 389f4c8..a545cf3 100644 --- a/src/AbstractDifferentiation.jl +++ b/src/AbstractDifferentiation.jl @@ -764,4 +764,8 @@ end end end +@static if VERSION >= v"1.11.0-DEV.469" + eval(Expr(:public, :gradient)) +end + end diff --git a/test/runtests.jl b/test/runtests.jl index 4716c57..44e1859 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,6 +2,10 @@ using AbstractDifferentiation using Documenter using Test +@static if VERSION >= v"1.11.0-DEV.469" + @test Base.ispublic(AbstractDifferentiation, :gradient) +end + @testset verbose = true "AbstractDifferentiation.jl" begin doctest(AbstractDifferentiation) include("test_utils.jl")