Mercurial > repos > public > sbplib_julia
changeset 1639:61aacc51d38a bugfix/warnings
Remove unused type parameter for method on Index
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 25 Jun 2024 15:47:05 +0200 |
parents | 14eb0ce96147 |
children | 8e28cadfefb3 |
files | src/RegionIndices/RegionIndices.jl |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/RegionIndices/RegionIndices.jl Tue Jun 25 15:39:54 2024 +0200 +++ b/src/RegionIndices/RegionIndices.jl Tue Jun 25 15:47:05 2024 +0200 @@ -13,7 +13,7 @@ Index{R,T}(i::T) where {R<:Region,T<:Integer} = new{R,T}(i) Index{R}(i::T) where {R<:Region,T<:Integer} = new{R,T}(i) Index(i::T, ::Type{R}) where {R<:Region,T<:Integer} = Index{R,T}(i) - Index(t::Tuple{T, DataType}) where {R<:Region,T<:Integer} = Index{t[2],T}(t[1]) # TBD: This is not very specific in what types are allowed in t[2]. Can this be fixed? + Index(t::Tuple{T, DataType}) where T<:Integer = Index{t[2],T}(t[1]) # TBD: This is not very specific in what types are allowed in t[2]. Can this be fixed? end export Index