Skip to content

Commit

Permalink
don't hardcode version for @constprop
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonschaub committed Sep 10, 2021
1 parent 9922cae commit a1fec50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Static.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using Base: @propagate_inbounds, Slice, AbstractCartesianIndex
export StaticInt, StaticFloat64, StaticSymbol, True, False, StaticBool, NDIndex
export dynamic, is_static, known, static

@static if VERSION >= v"1.7.0-DEV.421"
@static if isdefined(Base, Symbol("@constprop"))
using Base: @constprop
else
macro constprop(_, ex)
Expand Down

0 comments on commit a1fec50

Please sign in to comment.