Skip to content

Commit

Permalink
Clean up julia 0.6 syntax for SizedArray.jl (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
githubtomtom committed Feb 3, 2020
1 parent ef5c315 commit 7786d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SizedArray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ end
@inline SizedArray{S,T,N}(::UndefInitializer) where {S,T,N} = SizedArray{S,T,N,N}(undef)
@inline SizedArray{S,T}(::UndefInitializer) where {S,T} = SizedArray{S,T,tuple_length(S),tuple_length(S)}(undef)

@generated function (::Type{SizedArray{S,T,N,M}})(x::NTuple{L,Any}) where {S,T,N,M,L}
@generated function SizedArray{S,T,N,M}(x::NTuple{L,Any}) where {S,T,N,M,L}
if L != tuple_prod(S)
error("Dimension mismatch")
end
Expand Down

0 comments on commit 7786d93

Please sign in to comment.