Skip to content

Commit 16ee473

Browse files
Fix loading of weak dep
1 parent ad3ae08 commit 16ee473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/PreallocationToolsReverseDiffExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module PreallocationToolsReverseDiffExt
22

33
using PreallocationTools
4-
import ReverseDiff
4+
isdefined(Base, :get_extension) ? (import ReverseDiff) : (import ..ReverseDiff)
55

66
# PreallocationTools https://github.com/SciML/PreallocationTools.jl/issues/39
77
function Base.getindex(b::PreallocationTools.LazyBufferCache, u::ReverseDiff.TrackedArray)

0 commit comments

Comments
 (0)