diff src/Grids/grid.jl @ 2044:b3268d0bd5bc

Fix warning on load for definition of IndexStyle
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 05 Feb 2026 22:32:54 +0100
parents 1fa47cacd3dd
children 491887181b8c
line wrap: on
line diff
--- a/src/Grids/grid.jl	Thu Feb 05 22:20:55 2026 +0100
+++ b/src/Grids/grid.jl	Thu Feb 05 22:32:54 2026 +0100
@@ -80,7 +80,7 @@
 Base.size(cv::ArrayComponentView) = size(cv.v)
 Base.getindex(cv::ArrayComponentView, i::Int) = cv.v[i][cv.component_index...]
 Base.getindex(cv::ArrayComponentView, I::Vararg{Int}) = cv.v[I...][cv.component_index...]
-IndexStyle(ACT::Type{ArrayComponentView}) = IndexStyle(_array_type(ACT))
+Base.IndexStyle(ACT::Type{ArrayComponentView}) = IndexStyle(_array_type(ACT))
 
 # TODO: Implement `setindex!`?
 # TODO: Implement a more general ComponentView that can handle non-AbstractArrays.