Skip to content

Commit 5afb0c1

Browse files
author
Andy Ferris
committed
Fix #526
1 parent a7c2ce8 commit 5afb0c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SizedArray.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ end
3939
@inline SizedArray{S,T}(::UndefInitializer) where {S,T} = SizedArray{S,T,tuple_length(S),tuple_length(S)}(undef)
4040

4141
@static if VERSION < v"1.0"
42-
@inline function SizedArray{S,T,N}(::UndefInitializer) where {S,T,N}
42+
@inline function SizedArray{S,T,N}() where {S,T,N}
4343
Base.depwarn("`SizedArray{S,T,N}()` is deprecated, use `SizedArray{S,T,N}(undef)` instead", :SizedArray)
4444
SizedArray{S,T,N,N}(undef)
4545
end
46-
@inline function SizedArray{S,T}(::UndefInitializer) where {S,T}
46+
@inline function SizedArray{S,T}() where {S,T}
4747
Base.depwarn("`SizedArray{S,T}()` is deprecated, use `SizedArray{S,T}(undef)` instead", :SizedArray)
4848
SizedArray{S,T,tuple_length(S),tuple_length(S)}(undef)
4949
end

0 commit comments

Comments
 (0)