# Parametric type deprecation when upgrading to 0.7

**URL:** <https://discourse.julialang.org/t/parametric-type-deprecation-when-upgrading-to-0-7/13965>\
**Category:** General Usage\
**Created:** [August 23, 2018, 8:54pm UTC](https://discourse.julialang.org/t/parametric-type-deprecation-when-upgrading-to-0-7/13965 "2018-08-23T20:54:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RaulDurand](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rauldurand/32/2044_2.png) [@RaulDurand](https://discourse.julialang.org/u/RaulDurand)\
**Post date:** [August 23, 2018, 8:54pm UTC](https://discourse.julialang.org/t/parametric-type-deprecation-when-upgrading-to-0-7/13965/1 "2018-08-23T20:54:52Z")

</div>

While upgrading a package I got the following message:

> ┌ Warning: `convert(::Type{T}, x::Enum{T2}) where {T <: Integer, T2 <: Integer}` is deprecated, use `T(x)` instead.  
> │ caller = setproperty! at sysimg.jl:19 [inlined]  
> └ @ Core ./sysimg.jl:19

I don’t know what this is about. The pointed filename and number are from Core and I cannot relate this to a specific line of code in my package.  
What would be the common case related with this warning?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [August 23, 2018, 8:58pm UTC](https://discourse.julialang.org/t/parametric-type-deprecation-when-upgrading-to-0-7/13965/2 "2018-08-23T20:58:59Z")

</div>

> [@RaulDurand](#):
>
> The pointed filename and number are from Core and I cannot relate this to a specific line of code in my package.

If you start julia with `julia --depwarn=error` you get a stacktrace to the warning/error.

---

<div class="post-metadata">

**Author:** ![RaulDurand](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rauldurand/32/2044_2.png) [@RaulDurand](https://discourse.julialang.org/u/RaulDurand)\
**Post date:** [August 26, 2018, 3:43am UTC](https://discourse.julialang.org/t/parametric-type-deprecation-when-upgrading-to-0-7/13965/3 "2018-08-26T03:43:06Z")

</div>

Thanks @fredrikekre.  
In this particular case I found that the warning arises when an Enum value value is assigned to a struct field declared as integer. The conversion was implicit in 0.6.
