Skip to content

Commit caab6b6

Browse files
Andrew David Werner Rosembergmzgubic
andauthored
constrain sortperm accordingly
Constrain `sortperm` and `partialsortperm` with `AbstractVector`. Co-authored-by: Miha Zgubic <[email protected]>
1 parent ab26023 commit caab6b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rulesets/Base/nondiff.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ VERSION >= v"1.3" && @non_differentiable istaskfailed(::Task)
289289
VERSION >= v"1.4" && @non_differentiable only(::Char)
290290
@non_differentiable open(::Any)
291291

292-
@non_differentiable partialsortperm(::AbstractArray{Any}, ::Union{Integer, OrdinalRange})
292+
@non_differentiable partialsortperm(::AbstractVector{Any}, ::Union{Integer, OrdinalRange})
293293
@non_differentiable pointer(::Any)
294294
@non_differentiable popdisplay(::AbstractDisplay)
295295
@non_differentiable position(::Base.Filesystem.File)
@@ -351,7 +351,7 @@ end
351351
@non_differentiable size(::Any, ::Any)
352352
@non_differentiable sizeof(::Any)
353353
@non_differentiable sleep(::Any)
354-
@non_differentiable sortperm(::AbstractArray{Any})
354+
@non_differentiable sortperm(::AbstractVector{Any})
355355
@non_differentiable split(::AbstractString)
356356
@non_differentiable split(::AbstractString, ::AbstractChar)
357357
@non_differentiable splitdir(::AbstractString)

0 commit comments

Comments
 (0)