Skip to content

Commit 887f157

Browse files
committed
fix failures
1 parent f4df41d commit 887f157

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/axes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function axes_types(::Type{T}) where {T<:AbstractRange}
4848
end
4949
end
5050
axes_types(::Type{T}) where {T<:ReshapedArray} = NTuple{ndims(T),OneTo{Int}}
51-
function _sub_axis_type(::Type{I}, ::Type{PA}, dim::StaticInt{D}) where {I<:Tuple,PA,D}
51+
function _sub_axis_type(::Type{PA}, ::Type{I}, dim::StaticInt{D}) where {I<:Tuple,PA,D}
5252
IT = field_type(I, dim)
5353
if IT <: Base.Slice
5454
axes_types(field_type(PA, dim), static(1))

test/axes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ end
7070
@testset "SubArray Adjoint Axis" begin
7171
N = 4; d = rand(N);
7272

73-
@test @inferred(ArrayInterface.axes_types(typeof(view(d',:,1:2)))) === Tuple{ArrayInterface.OptionallyStaticUnitRange{Static.StaticInt{1}, Static.StaticInt{1}}, Base.OneTo{Int64}}
73+
@test @inferred(ArrayInterface.axes_types(typeof(view(d',:,1:2)))) === Tuple{ArrayInterface.OptionallyStaticUnitRange{StaticInt{1}, StaticInt{1}}, Base.OneTo{Int64}}
7474

7575
end
7676
if isdefined(Base, :ReshapedReinterpretArray)

0 commit comments

Comments
 (0)