diff --git a/Project.toml b/Project.toml index 4836eb6..cfcfd5b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Static" uuid = "aedffcd0-7271-4cad-89d0-dc628f76c6d3" authors = ["chriselrod", "ChrisRackauckas", "Tokazama"] -version = "0.8.3" +version = "0.8.4" [deps] IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173" diff --git a/src/ranges.jl b/src/ranges.jl index 6a15be8..7d98663 100644 --- a/src/ranges.jl +++ b/src/ranges.jl @@ -144,6 +144,7 @@ An alias for `OptionallyStaticUnitRange` usfeul for statically sized axes. """ const SOneTo{L} = SUnitRange{1, L} SOneTo(n::Int) = SOneTo{n}() +Base.oneto(::StaticInt{N}) where {N} = SOneTo{N}() const OptionallyStaticRange{F, L} = Union{OptionallyStaticUnitRange{F, L}, OptionallyStaticStepRange{F, <:Any, L}} diff --git a/test/runtests.jl b/test/runtests.jl index 6a068da..95f9a87 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,7 +2,7 @@ using Static, Aqua using Static: Zero using Test -Aqua.test_all(Static) +Aqua.test_all(Static, piracy = false) @testset "StaticSymbol" begin x = StaticSymbol(:x)