Skip to content

Commit 1b22a24

Browse files
committed
update inner constructor syntax
1 parent d11ce74 commit 1b22a24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/darray.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type DArray{T,N,A} <: AbstractArray{T,N}
3232

3333
release::Bool
3434

35-
function DArray(id, dims, pids, indexes, cuts, lp)
35+
function DArray{T,N,A}(id, dims, pids, indexes, cuts, lp) where {T,N,A}
3636
# check invariants
3737
if dims != map(last, last(indexes))
3838
throw(ArgumentError("dimension of DArray (dim) and indexes do not match"))
@@ -52,7 +52,7 @@ type DArray{T,N,A} <: AbstractArray{T,N}
5252
d
5353
end
5454

55-
DArray() = new()
55+
DArray{T,N,A}() where {T,N,A} = new()
5656
end
5757

5858
eltype{T}(::Type{DArray{T}}) = T

0 commit comments

Comments
 (0)