Skip to content

Commit 223d86f

Browse files
authored
Julia v1.11 support (#342)
* Julia v1.11 support * override unchecked_oneto
1 parent c22b86d commit 223d86f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
matrix:
1414
version:
1515
- '1.10'
16+
- '^1.11.0-0'
1617
os:
1718
- ubuntu-latest
1819
- macOS-latest

test/infinitearrays.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ module InfiniteArrays
2424
Base.axes(r::OneToInf) = (r,)
2525
Base.first(r::OneToInf{T}) where {T} = oneunit(T)
2626

27-
Base.oneto(::InfiniteCardinal{0}) = OneToInf()
27+
if VERSION < v"1.11-"
28+
Base.oneto(::InfiniteCardinal{0}) = OneToInf()
29+
else
30+
Base.unchecked_oneto(::InfiniteCardinal{0}) = OneToInf()
31+
end
2832

2933
Base.axes(::AbstractInfUnitRange) = (OneToInf(),)
3034

0 commit comments

Comments
 (0)