Skip to content

Commit 4007fbb

Browse files
chore: add has_trivial_array_convert
1 parent 50a8aff commit 4007fbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ArrayInterface.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,4 +1000,8 @@ ensures_sorted(@nospecialize( T::Type{<:AbstractRange})) = true
10001000
ensures_sorted(T::Type) = is_forwarding_wrapper(T) ? ensures_sorted(parent_type(T)) : false
10011001
ensures_sorted(@nospecialize(x)) = ensures_sorted(typeof(x))
10021002

1003+
function has_trivial_array_contstructor(::Type{T}, args...) as T
1004+
applicable(T, args...)
1005+
end
1006+
10031007
end # module

0 commit comments

Comments
 (0)