Skip to content

Commit

Permalink
Merge pull request #6100 from ivarne/patch-1
Browse files Browse the repository at this point in the history
Which for error message for non-broadcasting (+) and (-)
  • Loading branch information
JeffBezanson committed Mar 11, 2014
2 parents 6128592 + d2d7c32 commit de0d371
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ export PipeString
@deprecate svdfact(A,thin) svdfact(A,thin=thin)
@deprecate svdfact!(A,thin) svdfact(A,thin=thin)
@deprecate svd(A,thin) svd(A,thin=thin)
# Note: These methods need a more helpfull error message than a `NoMethodError`,
# when the deprecation is removed
@deprecate (+)(A::Array{Bool},x::Bool) A .+ x
@deprecate (+)(x::Bool,A::Array{Bool}) x .+ A
@deprecate (-)(A::Array{Bool},x::Bool) A .- x
Expand Down

0 comments on commit de0d371

Please sign in to comment.