Skip to content

Commit fb4f746

Browse files
committed
restrict to OneTo
1 parent 86bd960 commit fb4f746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trues.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ end
4646

4747
# https://github.com/JuliaArrays/FillArrays.jl/issues/148
4848
function Base.getindex(
49-
a::AbstractFill{T, 1, Axes} where Axes,
49+
a::AbstractFill{T, 1, Tuple{Base.OneTo{Int}}},
5050
b::Trues{1, Tuple{Base.OneTo{Int}}}) where T
5151
@boundscheck length(a) == length(b) || throw(BoundsError(a, b))
5252
return Fill(getindex_value(a), length(a))

0 commit comments

Comments
 (0)