diff --git a/ext/SymbolicIndexingInterfaceSymbolicUtilsExt.jl b/ext/SymbolicIndexingInterfaceSymbolicUtilsExt.jl index ea70316..df48aa3 100644 --- a/ext/SymbolicIndexingInterfaceSymbolicUtilsExt.jl +++ b/ext/SymbolicIndexingInterfaceSymbolicUtilsExt.jl @@ -1,6 +1,11 @@ module SymbolicIndexingInterfaceSymbolicUtilsExt -using SymbolicIndexingInterface, SymbolicUtils +using SymbolicIndexingInterface +@static if isdefined(Base, :get_extension) + using SymbolicUtils +else + using ..SymbolicUtils +end SymbolicIndexingInterface.issymbolic(::Type{<:SymbolicUtils.BasicSymbolic}) = Symbolic() diff --git a/ext/SymbolicIndexingInterfaceSymbolicsExt.jl b/ext/SymbolicIndexingInterfaceSymbolicsExt.jl index dd767a9..f8acbbf 100644 --- a/ext/SymbolicIndexingInterfaceSymbolicsExt.jl +++ b/ext/SymbolicIndexingInterfaceSymbolicsExt.jl @@ -1,6 +1,12 @@ module SymbolicIndexingInterfaceSymbolicsExt -using SymbolicIndexingInterface, Symbolics +using SymbolicIndexingInterface + +@static if isdefined(Base, :get_extension) + using Symbolics +else + using ..Symbolics +end SymbolicIndexingInterface.issymbolic(::Type{<:Symbolics.Num}) = Symbolic()