Skip to content

Commit

Permalink
Fix ambiguity error
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Dec 20, 2024
1 parent ac4e58c commit 04113e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sparsearrayinterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ using Derive: Derive

struct SparseArrayInterface <: AbstractSparseArrayInterface end

# Fix ambiguity error.
function Derive.combine_interface_rule(::SparseArrayInterface, ::SparseArrayInterface)
return SparseArrayInterface()
end
function Derive.combine_interface_rule(
interface1::SparseArrayInterface, interface2::AbstractSparseArrayInterface
)
Expand Down

0 comments on commit 04113e7

Please sign in to comment.