# @code\_warntype infers DArray as Any

**URL:** <https://discourse.julialang.org/t/code-warntype-infers-darray-as-any/14386>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 31, 2018, 11:05pm UTC](https://discourse.julialang.org/t/code-warntype-infers-darray-as-any/14386 "2018-08-31T23:05:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparrowhawk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sparrowhawk/32/9148_2.png) [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Post date:** [August 31, 2018, 11:05pm UTC](https://discourse.julialang.org/t/code-warntype-infers-darray-as-any/14386/1 "2018-08-31T23:05:59Z")

</div>

Why does my function show this warning on the type of output DArray?

```julia
addprocs(4)
using DistributedArrays

function myfill(v::Int)
      D = DArray((nworkers(),), workers()) do I
           [v]
     end
     return D
end

```

So far so good

> julia\> myfill(3)  
> 4-element DistributedArrays.DArray{Int64,1,Array{Int64,1}}:  
> 3  
> 3  
> 3  
> 3

as expected. But when I do  
`@code_warntype myfill(3)`  
I get

> Variables:  
> #self#   
> v::Int64  
> #1::##1#2{Int64}  
> **D::Any**  
> n::Int64  
> #temp#::Int64

Why is D now inferred as Any (on Julia 0.6.2) ?
