Skip to content

Commit 688295a

Browse files
committed
Fix position definitions
1 parent 95f47ce commit 688295a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/blocksparsearray/blocksparsearray.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ blockstype(arraytype::Type{<:BlockSparseArray}) = SparseArrayDOK{AbstractArray}
202202

203203
# TypeParameterAccessors.jl interface
204204
using TypeParameterAccessors: TypeParameterAccessors, Position, set_type_parameters
205-
TypeParameterAccessors.position(::Type{BlockSparseArray}, eltype) = Position(1)
206-
TypeParameterAccessors.position(::Type{BlockSparseArray}, ndims) = Position(2)
207-
TypeParameterAccessors.position(::Type{BlockSparseArray}, blocktype) = Position(3)
208-
TypeParameterAccessors.position(::Type{BlockSparseArray}, blockstype) = Position(4)
205+
TypeParameterAccessors.position(::Type{BlockSparseArray}, ::typeof(eltype)) = Position(1)
206+
TypeParameterAccessors.position(::Type{BlockSparseArray}, ::typeof(ndims)) = Position(2)
207+
TypeParameterAccessors.position(::Type{BlockSparseArray}, ::typeof(blocktype)) = Position(3)
208+
TypeParameterAccessors.position(::Type{BlockSparseArray}, ::typeof(blockstype)) = Position(4)
209209

210210
# TODO: Make this generic to `AbstractBlockSparseVector` using
211211
# TypeParameterAccessors.jl, for example using:

0 commit comments

Comments
 (0)