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

Ambiguity in adding Vcat and Fill #241

Closed
jishnub opened this issue Mar 17, 2023 · 1 comment
Closed

Ambiguity in adding Vcat and Fill #241

jishnub opened this issue Mar 17, 2023 · 1 comment

Comments

@jishnub
Copy link
Member

jishnub commented Mar 17, 2023

This seems broken with FillArrays v0.13.8

julia> x = Vcat(1:2)
vcat(2-element UnitRange{Int64}):
 1
 2

julia> y = Fill(2, 2)
2-element Fill{Int64}, with entries equal to 2

julia> x + y
ERROR: MethodError: +(::ApplyArray{Int64, 1, typeof(vcat), Tuple{UnitRange{Int64}}}, ::Fill{Int64, 1, Tuple{Base.OneTo{Int64}}}) is ambiguous.

Candidates:
  +(a::AbstractArray, b::FillArrays.AbstractFill)
    @ FillArrays ~/.julia/packages/FillArrays/VUZcr/src/fillalgebra.jl:242
  +(A::Vcat, B::AbstractArray)
    @ LazyArrays ~/Dropbox/JuliaPackages/LazyArrays.jl/src/lazyconcat.jl:628

Possible fix, define
  +(::Vcat, ::FillArrays.AbstractFill)

Stacktrace:
 [1] top-level scope
   @ REPL[5]:1
@jishnub
Copy link
Member Author

jishnub commented Mar 18, 2023

Fixed on FillArrays v0.13.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant