Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.+(::Number) not defined #19572

Closed
dlfivefifty opened this issue Dec 13, 2016 · 1 comment
Closed

.+(::Number) not defined #19572

dlfivefifty opened this issue Dec 13, 2016 · 1 comment
Labels
broadcast Applying a function over a collection

Comments

@dlfivefifty
Copy link
Contributor

This is inconsistent:

julia> .+(5)
ERROR: MethodError: no method matching .+(::Int64)
Closest candidates are:
  .+(::Real, ::AbstractUnitRange{T}) at range.jl:746
  .+(::Real, ::FloatRange{T<:AbstractFloat}) at range.jl:749
  .+{T}(::Real, ::LinSpace{T}) at range.jl:751
  ...

julia> broadcast(+,5)
5

Presumably this will be fixed when .+ auto-fuses?

@kshyatt kshyatt added the broadcast Applying a function over a collection label Dec 13, 2016
@Sacha0
Copy link
Member

Sacha0 commented Dec 25, 2016

Fixed (#17623). Best!

@Sacha0 Sacha0 closed this as completed Dec 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
broadcast Applying a function over a collection
Projects
None yet
Development

No branches or pull requests

3 participants