Skip to content

Commit 04113e7

Browse files
committed
Fix ambiguity error
1 parent ac4e58c commit 04113e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sparsearrayinterface.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ using Derive: Derive
22

33
struct SparseArrayInterface <: AbstractSparseArrayInterface end
44

5+
# Fix ambiguity error.
6+
function Derive.combine_interface_rule(::SparseArrayInterface, ::SparseArrayInterface)
7+
return SparseArrayInterface()
8+
end
59
function Derive.combine_interface_rule(
610
interface1::SparseArrayInterface, interface2::AbstractSparseArrayInterface
711
)

0 commit comments

Comments
 (0)