We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eecb73 commit 34b2ae5Copy full SHA for 34b2ae5
base/deprecated.jl
@@ -221,4 +221,13 @@ iterate(match::Core.MethodMatch, field::Int=1) =
221
getindex(match::Core.MethodMatch, field::Int) =
222
getfield(match, field)
223
224
+
225
+# these were internal functions, but some packages seem to be relying on them
226
+tuple_type_head(T::Type) = fieldtype(T, 1)
227
+tuple_type_cons(::Type, ::Type{Union{}}) = Union{}
228
+function tuple_type_cons(::Type{S}, ::Type{T}) where T<:Tuple where S
229
+ @_pure_meta
230
+ Tuple{S, T.parameters...}
231
+end
232
233
# END 1.6 deprecations
0 commit comments