Skip to content

Commit 76607b1

Browse files
committed
Fix ambiguity with MA
1 parent 257ad7a commit 76607b1

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)