JuliaApproximation / QuasiArrays.jl

A package for representing quasi-arrays
MIT License
12 stars 2 forks source link

import QuasiArrays breaks broadcasted assignment to array indexd by zero-dimensional array #97

Closed akirakyle closed 1 year ago

akirakyle commented 1 year ago

I came across this edgecase in debugging a package that broke simply by adding an import QuasiArrays

import QuasiArrays
A = ones(Int, 4)
A[ones(Int)] .+= 1

without the import this runs fine, with the import I get the error

MethodError: no method matching (QuasiArrays.QuasiIteratorsMD.QuasiCartesianIndices{0, Tuple{}, RR} where RR<:Tuple{})(::Tuple{})
dlfivefifty commented 1 year ago

Thanks for reporting this!