Skip to content

Commit 1a89dd5

Browse files
committed
fix check in +
1 parent 3b53344 commit 1a89dd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ sub_t(a) = promote_symtype(-, symtype(a))
10131013

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

0 commit comments

Comments
 (0)