Skip to content

Commit 5af9e41

Browse files
authored
Merge pull request #135 from JuliaAlgebra/bl/mafix
Fix ambiguity with MA
2 parents 257ad7a + 76607b1 commit 5af9e41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/operators.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ end
3737
# Fix ambiguity between above methods and methods in MA
3838
Base.:+(::MA.Zero, p::APL) = MA.copy_if_mutable(p)
3939
Base.:+(p::APL, ::MA.Zero) = MA.copy_if_mutable(p)
40+
Base.:-(::MA.Zero, p::APL) = MA.operate(-, p)
41+
Base.:-(p::APL, ::MA.Zero) = MA.copy_if_mutable(p)
4042

4143
# Special case AbstractArrays of APLs
4244
# We add these instead of relying on the broadcasting API since the above method definitions are very wide.

0 commit comments

Comments
 (0)