From e669bd466d56697730ea219d701c00f261c39045 Mon Sep 17 00:00:00 2001 From: Sheehan Olver Date: Tue, 6 Aug 2024 17:11:29 +0200 Subject: [PATCH] Julia v1.11 Support (#109) * Julia v1.11 Support * tests pass --- .github/workflows/ci.yml | 1 + Project.toml | 2 +- src/indices.jl | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2a78a4..9ea557f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,7 @@ jobs: version: - '1.6' - '1' + - '^1.11.0-0' os: - ubuntu-latest - macOS-latest diff --git a/Project.toml b/Project.toml index 32483f7..99b9efe 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "QuasiArrays" uuid = "c4ea9172-b204-11e9-377d-29865faadc5c" authors = ["Sheehan Olver "] -version = "0.11.6" +version = "0.11.7" [deps] ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a" diff --git a/src/indices.jl b/src/indices.jl index 06c5bc7..973ce5e 100644 --- a/src/indices.jl +++ b/src/indices.jl @@ -210,6 +210,8 @@ union(x::Inclusion...) = Inclusion{mapreduce(eltype,promote_type,x)}(_union(map( checkindex(::Type{Bool}, inds::Inclusion{T}, i::T) where T = i ∈ inds checkindex(::Type{Bool}, inds::Inclusion, i) = i ⊆ inds +checkindex(::Type{Bool}, inds::Inclusion{T}, i::T) where T<:AbstractArray = i ∈ inds +checkindex(::Type{Bool}, inds::Inclusion, i::AbstractArray) = i ⊆ inds checkindex(::Type{Bool}, inds::Inclusion, ::Colon) = true checkindex(::Type{Bool}, inds::Inclusion, ::Inclusion) = true