Skip to content

Commit

Permalink
Merge 2efa8d5 into 86231ce
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko authored Aug 9, 2024
2 parents 86231ce + 2efa8d5 commit 3b88cec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion base/ntuple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ end
function reverse(t::NTuple{N}) where N
ntuple(Val{N}()) do i
t[end+1-i]
end
end::NTuple
end
2 changes: 2 additions & 0 deletions test/tuple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -845,3 +845,5 @@ end
end
end
end

@test NTuple == Base.infer_return_type(reverse, Tuple{NTuple})

0 comments on commit 3b88cec

Please sign in to comment.