Skip to content

Commit 7bbc64f

Browse files
committed
promotion
1 parent e0f733d commit 7bbc64f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/arithmetic.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ for op in [:+, :-, :*]
3131
function Base.$op(p::_AE, q::_AE)
3232
return MA.operate_to!(SA._preallocate_output($op, p, q), $op, p, q)
3333
end
34+
function Base.promote_rule(Q::Type{<:_APL}, P::Type{<:_AE})
35+
return promote_type(Q, MP.polynomial_type(P))
36+
end
3437
end
3538
end
3639
for op in [:+, :-]

0 commit comments

Comments
 (0)