Skip to content

Commit aaee238

Browse files
committed
Fix for Julia v1.6
1 parent 40acf99 commit aaee238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Static.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ is_static(T::DataType) = False()
106106
107107
Returns the "dynamic" or non-static form of `x`.
108108
"""
109-
dynamic(@nospecialize(x::NDIndex)) = CartesianIndex(dynamic(Tuple(x)))
110-
@constprop :aggressive dynamic(@nospecialize(x::Tuple)) = map(dynamic, x)
111109
@inline dynamic(@nospecialize(x)) = ifelse(is_static(typeof(x)), known, identity)(x)
110+
dynamic(@nospecialize(x::Tuple)) = map(dynamic, x)
111+
dynamic(@nospecialize(x::NDIndex)) = CartesianIndex(dynamic(Tuple(x)))
112112

113113
function Base.string(@nospecialize(x::Union{StaticInt,StaticSymbol,StaticFloat64,True,False}); kwargs...)
114114
string("static(" * repr(known(typeof(x))) * ")"; kwargs...)

0 commit comments

Comments
 (0)