Skip to content

Commit 09d1591

Browse files
committed
Try fixing some tests
1 parent 6d48e73 commit 09d1591

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/BlockSparseArraysGradedUnitRangesExt/BlockSparseArraysGradedUnitRangesExt.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ function Base.similar(
3535
return similar_blocksparse(a, elt, axes)
3636
end
3737

38-
function Base.getindex(a::AbstractArray, I::AbstractGradedUnitRange...)
38+
function Base.getindex(
39+
a::AbstractArray, I1::AbstractGradedUnitRange, I_rest::AbstractGradedUnitRange...
40+
)
3941
a′ = similar(a, only.(axes.(I))...)
4042
a′ .= a
4143
return a′

0 commit comments

Comments
 (0)