JuliaArrays/LazyArrays.jl

Macro throws BoundsError

blegat opened this issue · 0 comments

julia> x = 1

julia> a = @~ -x * [1, 2];
ERROR: BoundsError: attempt to access Tuple{} at index [2]
Stacktrace:
 [1] getindex(t::Tuple, i::Int64)
   @ Base ./tuple.jl:29
 [2] axes(M::Applied{LazyArrays.DefaultApplyStyle, typeof(-), Tuple{Int64}}, p::Int64)
   @ LazyArrays ~/.julia/packages/LazyArrays/pdsik/src/linalg/add.jl:27
 [3] _check_mul_axes(A::Applied{LazyArrays.DefaultApplyStyle, typeof(-), Tuple{Int64}}, B::Vector{Int64})
   @ ArrayLayouts ~/.julia/packages/ArrayLayouts/pPGEV/src/mul.jl:87
 [4] check_mul_axes(::Applied{LazyArrays.DefaultApplyStyle, typeof(-), Tuple{Int64}}, ::Vector{Int64})
   @ ArrayLayouts ~/.julia/packages/ArrayLayouts/pPGEV/src/mul.jl:89
 [5] check_applied_axes(A::Applied{LazyArrays.DefaultApplyStyle, typeof(*), Tuple{Applied{LazyArrays.DefaultApplyStyle, typeof(-), Tuple{Int64}}, Vector{Int64}}})
   @ LazyArrays ~/.julia/packages/LazyArrays/pdsik/src/linalg/mul.jl:22
 [6] instantiate(A::Applied{LazyArrays.DefaultApplyStyle, typeof(*), Tuple{Applied{LazyArrays.DefaultApplyStyle, typeof(-), Tuple{Int64}}, Vector{Int64}}})
   @ LazyArrays ~/.julia/packages/LazyArrays/pdsik/src/lazyapplying.jl:62