# Deprecated syntax Core.apply\_type

**URL:** <https://discourse.julialang.org/t/deprecated-syntax-core-apply-type/1577>\
**Category:** General Usage\
**Created:** [January 19, 2017, 12:49am UTC](https://discourse.julialang.org/t/deprecated-syntax-core-apply-type/1577 "2017-01-19T00:49:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lcambier](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lcambier/32/4072_2.png) [@lcambier](https://discourse.julialang.org/u/lcambier)\
**Post date:** [January 19, 2017, 12:49am UTC](https://discourse.julialang.org/t/deprecated-syntax-core-apply-type/1577/1 "2017-01-19T00:49:38Z")

</div>

Hi,

I am fairly new to Julia. I’ve coded a relatively big (at least for me) piece of code, but I have the following error message that shows up when I run it

WARNING: deprecated syntax “y::Core.apply\_type(Array,Float64,2)”.  
Use “local y::Core.apply\_type(Array,Float64,2)” instead.

It does not point to any line or anything, so I’m having a hard time locating the source of the warning.  
Would anyone have any pointer/idea of what could be causing this ?

Thanks

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [January 19, 2017, 12:56am UTC](https://discourse.julialang.org/t/deprecated-syntax-core-apply-type/1577/2 "2017-01-19T00:56:40Z")

</div>

I guess this is unfortunate printing.  
Are you having these somewhere in your source:

```nohighlight
x::Matrix{Float64} # or Array{Float64, 2}
...
x = zeros(Float64, 2, 2)

```

---

<div class="post-metadata">

**Author:** ![lcambier](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lcambier/32/4072_2.png) [@lcambier](https://discourse.julialang.org/u/lcambier)\
**Post date:** [January 19, 2017, 1:20am UTC](https://discourse.julialang.org/t/deprecated-syntax-core-apply-type/1577/3 "2017-01-19T01:20:55Z")

</div>

That was it !  
I had a  
`x::Array{Float64, 2}`  
declared somewhere in the code. I just removed it and it’s all good now 😃
