{"action":"created","issue":{"url":"https://api.github.com/repos/ajkeller34/Unitful.jl/issues/127","repository_url":"https://api.github.com/repos/ajkeller34/Unitful.jl","labels_url":"https://api.github.com/repos/ajkeller34/Unitful.jl/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/ajkeller34/Unitful.jl/issues/127/comments","events_url":"https://api.github.com/repos/ajkeller34/Unitful.jl/issues/127/events","html_url":"https://github.com/ajkeller34/Unitful.jl/issues/127","id":306976670,"number":127,"title":"Addition of heterogeneous arrays","user":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars1.githubusercontent.com/u/1282691?v=4","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-20T17:59:42Z","updated_at":"2018-04-19T08:16:13Z","closed_at":"2018-04-19T07:53:09Z","author_association":"NONE","body":"```\r\nb = [0.0, 0.0m]\r\nb + b\r\nb .+ b\r\n```\r\n\r\nBoth of these fails. If `b` is declared as `Any` it works. Is would be nice if this worked.\r\n\r\nStacktrace:\r\n\r\n```\r\nTypeError: setindex!: in typeassert, expected Unitful.Quantity{Float64,Unitful.Dimensions{()},Unitful.FreeUnits{(),Unitful.Dimensions{()}}}, got Float64\r\n\r\nStacktrace:\r\n [1] setindex!(::Array{Unitful.Quantity{Float64,Unitful.Dimensions{()},Unitful.FreeUnits{(),Unitful.Dimensions{()}}},1}, ::Unitful.Quantity{Float64,Unitful.Dimensions{()},Unitful.FreeUnits{(),Unitful.Dimensions{()}}}, ::Int64) at ./array.jl:583\r\n [2] collect_to_with_first! at ./array.jl:494 [inlined]\r\n [3] collect(::Base.Generator{UnitRange{Int64},Base.Broadcast.##1#2{Tuple{Array{Unitful.Quantity{Float64,D,U} where U where D,1},Array{Unitful.Quantity{Float64,D,U} where U where D,1}},Tuple{Tuple{Bool},Tuple{Bool}},Tuple{Tuple{Int64},Tuple{Int64}},CartesianIndex{1}}}) at ./array.jl:476\r\n [4] broadcast_t(::Function, ::Type{Any}, ::Tuple{Base.OneTo{Int64}}, ::CartesianRange{CartesianIndex{1}}, ::Array{Unitful.Quantity{Float64,D,U} where U where D,1}, ::Array{Unitful.Quantity{Float64,D,U} where U where D,1}) at ./broadcast.jl:258\r\n [5] broadcast_c at ./broadcast.jl:321 [inlined]\r\n [6] broadcast at ./broadcast.jl:455 [inlined]\r\n [7] +(::Array{Unitful.Quantity{Float64,D,U} where U where D,1}, ::Array{Unitful.Quantity{Float64,D,U} where U where D,1}) at ./arraymath.jl:39\r\n```"},"comment":{"url":"https://api.github.com/repos/ajkeller34/Unitful.jl/issues/comments/382650329","html_url":"https://github.com/ajkeller34/Unitful.jl/issues/127#issuecomment-382650329","issue_url":"https://api.github.com/repos/ajkeller34/Unitful.jl/issues/127","id":382650329,"user":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars1.githubusercontent.com/u/1282691?v=4","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T08:16:13Z","updated_at":"2018-04-19T08:16:13Z","author_association":"NONE","body":"Cheers1"}}
{"actor":{"display_login":"KristofferC"}}