Skip to content

Commit c897236

Browse files
Merge pull request #183 from JuliaArrays/static
more `@static if`'s on version checks
2 parents 713e053 + 6cf5e6a commit c897236

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ArrayInterface.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ end
2727

2828
const CanonicalInt = Union{Int,StaticInt}
2929

30-
if VERSION v"1.6.0-DEV.1581"
30+
@static if VERSION v"1.6.0-DEV.1581"
3131
_is_reshaped(::Type{ReinterpretArray{T,N,S,A,true}}) where {T,N,S,A} = true
3232
_is_reshaped(::Type{ReinterpretArray{T,N,S,A,false}}) where {T,N,S,A} = false
3333
else
@@ -140,7 +140,7 @@ ismutable(::Type{BigFloat}) = false
140140
ismutable(::Type{BigInt}) = false
141141
function ismutable(::Type{T}) where {T}
142142
if parent_type(T) <: T
143-
if VERSION v"1.7.0-DEV.1208"
143+
@static if VERSION v"1.7.0-DEV.1208"
144144
return Base.ismutabletype(T)
145145
else
146146
return T.mutable
@@ -617,7 +617,7 @@ end
617617

618618

619619
"""
620-
is_lazy_conjugate(::AbstractArray)
620+
is_lazy_conjugate(::AbstractArray)
621621
622622
Determine if a given array will lazyily take complex conjugates, such as with `Adjoint`. This will work with
623623
nested wrappers, so long as there is no type in the chain of wrappers such that `parent_type(T) == T`

0 commit comments

Comments
 (0)