{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/18176","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/18176/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/18176/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/18176/events","html_url":"https://github.com/JuliaLang/julia/issues/18176","id":172438637,"number":18176,"title":"New .-broadcast throws no method error for `promote_eltype_op`","user":{"login":"mauro3","id":4098145,"avatar_url":"https://avatars.githubusercontent.com/u/4098145?v=3","gravatar_id":"","url":"https://api.github.com/users/mauro3","html_url":"https://github.com/mauro3","followers_url":"https://api.github.com/users/mauro3/followers","following_url":"https://api.github.com/users/mauro3/following{/other_user}","gists_url":"https://api.github.com/users/mauro3/gists{/gist_id}","starred_url":"https://api.github.com/users/mauro3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauro3/subscriptions","organizations_url":"https://api.github.com/users/mauro3/orgs","repos_url":"https://api.github.com/users/mauro3/repos","events_url":"https://api.github.com/users/mauro3/events{/privacy}","received_events_url":"https://api.github.com/users/mauro3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/vectorization","name":"vectorization","color":"1d76db"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/JuliaLang/julia/milestones/21","html_url":"https://github.com/JuliaLang/julia/milestones/0.5.x","labels_url":"https://api.github.com/repos/JuliaLang/julia/milestones/21/labels","id":1298030,"number":21,"title":"0.5.x","description":"Bugs to fix in the 0.5.0 or 0.5.x timeframe.","creator":{"login":"JeffBezanson","id":744556,"avatar_url":"https://avatars.githubusercontent.com/u/744556?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffBezanson","html_url":"https://github.com/JeffBezanson","followers_url":"https://api.github.com/users/JeffBezanson/followers","following_url":"https://api.github.com/users/JeffBezanson/following{/other_user}","gists_url":"https://api.github.com/users/JeffBezanson/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffBezanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffBezanson/subscriptions","organizations_url":"https://api.github.com/users/JeffBezanson/orgs","repos_url":"https://api.github.com/users/JeffBezanson/repos","events_url":"https://api.github.com/users/JeffBezanson/events{/privacy}","received_events_url":"https://api.github.com/users/JeffBezanson/received_events","type":"User","site_admin":false},"open_issues":62,"closed_issues":47,"state":"open","created_at":"2015-09-09T16:38:11Z","updated_at":"2016-08-25T15:24:11Z","due_on":"2016-08-31T04:00:00Z","closed_at":null},"comments":15,"created_at":"2016-08-22T12:19:53Z","updated_at":"2016-08-25T20:00:22Z","closed_at":null,"body":"For some reason the last call with two floats throws an error:\r\n```\r\n# Version 0.5.0-rc2+0 (2016-08-12 11:25 UTC)\r\n\r\njulia> f(a,b,c) = a+b+c\r\nf (generic function with 1 method)\r\n\r\njulia> f.(1.0:2, 3, 4)\r\n2-element Array{Float64,1}:\r\n 8.0\r\n 9.0\r\n\r\njulia> f.(1.0:2, 3.0, 4)\r\n2-element Array{Float64,1}:\r\n 8.0\r\n 9.0\r\n\r\njulia> f.(1.0:2, 3.0, 4.0)\r\nERROR: MethodError: no method matching promote_eltype_op(::#f, ::Float64, ::Float64)\r\nClosest candidates are:\r\n  promote_eltype_op(::Any, ::Any, ::Any, ::Any, ::Any...) at abstractarray.jl:1661\r\n  promote_eltype_op{R,S}(::Any, ::AbstractArray{R,N}, ::S) at abstractarray.jl:1659\r\n  promote_eltype_op{T}(::Any, ::T) at abstractarray.jl:1657\r\n  ...\r\n in promote_eltype_op(::Function, ::FloatRange{Float64}, ::Float64, ::Float64) at ./abstractarray.jl:1661\r\n in broadcast(::Function, ::FloatRange{Float64}, ::Float64, ::Float64, ::Vararg{Float64,N}) at ./broadcast.jl:230\r\n```\r\nnote the, according the the manual equivalent, direct broadcast call errors for all arguments:\r\n```\r\njulia> broadcast(f, 1.0:2, 3, 4)\r\nERROR: MethodError: no method matching promote_eltype_op(::#f, ::Int64, ::Int64)\r\nClosest candidates are:\r\n  promote_eltype_op(::Any, ::Any, ::Any, ::Any, ::Any...) at abstractarray.jl:1661\r\n  promote_eltype_op{R,S}(::Any, ::AbstractArray{R,N}, ::S) at abstractarray.jl:1659\r\n  promote_eltype_op{T}(::Any, ::T) at abstractarray.jl:1657\r\n  ...\r\n in promote_eltype_op(::Function, ::FloatRange{Float64}, ::Int64, ::Int64) at ./abstractarray.jl:1661\r\n in broadcast(::Function, ::FloatRange{Float64}, ::Int64, ::Int64, ::Vararg{Int64,N}) at ./broadcast.jl:230\r\n```\r\n\r\nIf this is indeed a bug, maybe backport it to 0.5."},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/242516990","html_url":"https://github.com/JuliaLang/julia/issues/18176#issuecomment-242516990","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/18176","id":242516990,"user":{"login":"pabloferz","id":8410335,"avatar_url":"https://avatars.githubusercontent.com/u/8410335?v=3","gravatar_id":"","url":"https://api.github.com/users/pabloferz","html_url":"https://github.com/pabloferz","followers_url":"https://api.github.com/users/pabloferz/followers","following_url":"https://api.github.com/users/pabloferz/following{/other_user}","gists_url":"https://api.github.com/users/pabloferz/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloferz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloferz/subscriptions","organizations_url":"https://api.github.com/users/pabloferz/orgs","repos_url":"https://api.github.com/users/pabloferz/repos","events_url":"https://api.github.com/users/pabloferz/events{/privacy}","received_events_url":"https://api.github.com/users/pabloferz/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T20:00:22Z","updated_at":"2016-08-25T20:00:22Z","body":"Yes, that should fix this too."}}
{"actor":{"display_login":"pabloferz"}}