Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
Define linearindexing for Type{T} instead of T
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasnoack committed Feb 13, 2017
1 parent 0c9184c commit a38a6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Base.getindex(t::AbstractDataArray, i::Real) =

## getindex: DataArray

Base.linearindexing(x::Union{DataArray,PooledDataArray}) = Base.LinearFast()
Base.linearindexing(::Type{<:Union{DataArray,PooledDataArray}}) = Base.LinearFast()

# Scalar case
function Base.getindex(da::DataArray, I::Real)
Expand Down

0 comments on commit a38a6f6

Please sign in to comment.