Skip to content

Commit

Permalink
fix check in +
Browse files Browse the repository at this point in the history
  • Loading branch information
shashi committed Sep 2, 2023
1 parent bca76e3 commit 108bc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ sub_t(a) = promote_symtype(-, symtype(a))

import Base: (+), (-), (*), (//), (/), (\), (^)
function +(a::SN, b::SN)
!nometa(a,b) && term(+, a, b) # Don't flatten if args have metadata
!nometa(a,b) && return term(+, a, b) # Don't flatten if args have metadata
if isadd(a) && isadd(b)
return Add(add_t(a,b),
a.coeff + b.coeff,
Expand Down

0 comments on commit 108bc5d

Please sign in to comment.