{"action":"closed","issue":{"url":"https://api.github.com/repos/JuliaDiffEq/LabelledArrays.jl/issues/25","repository_url":"https://api.github.com/repos/JuliaDiffEq/LabelledArrays.jl","labels_url":"https://api.github.com/repos/JuliaDiffEq/LabelledArrays.jl/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/JuliaDiffEq/LabelledArrays.jl/issues/25/comments","events_url":"https://api.github.com/repos/JuliaDiffEq/LabelledArrays.jl/issues/25/events","html_url":"https://github.com/JuliaDiffEq/LabelledArrays.jl/issues/25","id":378519302,"node_id":"MDU6SXNzdWUzNzg1MTkzMDI=","number":25,"title":"Broadcast error for `LArray`s of different types","user":{"login":"MSeeker1340","id":30965945,"node_id":"MDQ6VXNlcjMwOTY1OTQ1","avatar_url":"https://avatars1.githubusercontent.com/u/30965945?v=4","gravatar_id":"","url":"https://api.github.com/users/MSeeker1340","html_url":"https://github.com/MSeeker1340","followers_url":"https://api.github.com/users/MSeeker1340/followers","following_url":"https://api.github.com/users/MSeeker1340/following{/other_user}","gists_url":"https://api.github.com/users/MSeeker1340/gists{/gist_id}","starred_url":"https://api.github.com/users/MSeeker1340/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSeeker1340/subscriptions","organizations_url":"https://api.github.com/users/MSeeker1340/orgs","repos_url":"https://api.github.com/users/MSeeker1340/repos","events_url":"https://api.github.com/users/MSeeker1340/events{/privacy}","received_events_url":"https://api.github.com/users/MSeeker1340/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-07T23:51:47Z","updated_at":"2018-11-08T06:00:20Z","closed_at":"2018-11-08T06:00:20Z","author_association":"CONTRIBUTOR","body":"On master:\r\n\r\n```julia\r\njulia> using LabelledArrays\r\n\r\njulia> x = @LArray [1, 2] (:a, :b)\r\n2-element LArray{Int64,1,(:a, :b)}:\r\n 1\r\n 2\r\n\r\njulia> y = Float64.(x)\r\n2-element LArray{Float64,1,(:a, :b)}:\r\n 1.0\r\n 2.0\r\n\r\njulia> x .+ y\r\nERROR: conflicting broadcast rules defined\r\n  Broadcast.BroadcastStyle(::LabelledArrays.LAStyle{Float64,1,(:a, :b)}, ::LabelledArrays.LAStyle{Int64,1,(:a, :b)}) = LabelledArrays.LAStyle{Float64,1,(:a, :b)}()\r\n  Broadcast.BroadcastStyle(::LabelledArrays.LAStyle{Int64,1,(:a, :b)}, ::LabelledArrays.LAStyle{Float64,1,(:a, :b)}) = LabelledArrays.LAStyle{Int64,1,(:a, :b)}()\r\nOne of these should be undefined (and thus return Broadcast.Unknown).\r\n```\r\n\r\n`SVector` is fine:\r\n\r\n```julia\r\njulia> AB = @SLVector (:a,:b)\r\nSLArray{Tuple{2},1,(:a, :b),T} where T\r\n\r\njulia> x = AB(1,2)\r\n2-element SLArray{Tuple{2},1,(:a, :b),Int64}:\r\n 1\r\n 2\r\n\r\njulia> y = Float64.(x)\r\n2-element SLArray{Tuple{2},1,(:a, :b),Float64}:\r\n 1.0\r\n 2.0\r\n\r\njulia> x .+ y\r\n2-element SLArray{Tuple{2},1,(:a, :b),Float64}:\r\n 2.0\r\n 4.0\r\n```"}}
{"actor":{"display_login":"ChrisRackauckas"}}