Skip to content

Commit

Permalink
add another deprecated internal function for backwards compat (#36794)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Aug 28, 2020
1 parent 36505aa commit 4b42f14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ function tuple_type_cons(::Type{S}, ::Type{T}) where T<:Tuple where S
@_pure_meta
Tuple{S, T.parameters...}
end
function parameter_upper_bound(t::UnionAll, idx)
@_pure_meta
return rewrap_unionall((unwrap_unionall(t)::DataType).parameters[idx], t)
end

# these were internal functions, but some packages seem to be relying on them
@deprecate cat_shape(dims, shape::Tuple{}, shapes::Tuple...) cat_shape(dims, shapes)
Expand Down

0 comments on commit 4b42f14

Please sign in to comment.