Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/AbstractDifferentiation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -764,4 +764,8 @@ end
end
end

@static if VERSION >= v"1.11.0-DEV.469"
eval(Expr(:public, :gradient))
end

end
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Loading