changeset 1814:9a92e1b354a1 feature/jet_aqua

Remove type piracy
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 10 Oct 2024 15:15:51 +0200
parents 3b523e5e03c5
children 3ada7e9be4d6
files src/RegionIndices/RegionIndices.jl
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/RegionIndices/RegionIndices.jl	Thu Oct 10 15:14:55 2024 +0200
+++ b/src/RegionIndices/RegionIndices.jl	Thu Oct 10 15:15:51 2024 +0200
@@ -30,7 +30,6 @@
 
 Base.Int(I::Index) = I.i
 Base.to_index(I::Index) = Int(I) #How to get this to work for all cases??
-Base.getindex(A::AbstractArray{T,N}, I::NTuple{N,Index}) where {T,N} = A[I...] #Is this ok??
 
 function Index(i::Integer, boundary_width::Integer, dim_size::Integer)
     return Index{getregion(i,boundary_width,dim_size)}(i)