Skip to content

Commit 8eeec44

Browse files
author
Miha Zgubic
committed
define insorted rules in 1.6 only
1 parent 6b369fb commit 8eeec44

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
@@ -41,8 +41,8 @@
4141
@non_differentiable getindex(::AbstractArray{Bool}, ::Any...)
4242
@non_differentiable hcat(::AbstractArray{Bool}...)
4343
@non_differentiable hvcat(::Any, ::AbstractArray{Bool}...)
44-
@non_differentiable insorted(::Any, ::AbstractVector)
45-
@non_differentiable insorted(::Any, ::AbstractRange)
44+
VERSION >= v"1.6" && @non_differentiable insorted(::Any, ::AbstractVector)
45+
VERSION >= v"1.6" && @non_differentiable insorted(::Any, ::AbstractRange)
4646
@non_differentiable isperm(::AbstractArray{Bool})
4747
@non_differentiable invperm(::AbstractArray{Bool})
4848
@non_differentiable invpermute!(::Any, ::AbstractArray{Bool})

0 commit comments

Comments
 (0)