Le dimanche 20 décembre 2015 à 08:11 -0800, Lutfullah Tomak a écrit :
> In error, it tells that there is no
> convert(::Type{Int64}, ::T1)
> method. So, that's why I'm confused.
> I would expect instead that the error tells
> convert(::Type{Array{Int64,1}}, ::T1)
> has no method if it trys T1(a).
Why do you expect that when calling T1(a), you'd need to convert from
T1 to an array? What happens is that Julia tries to fit the existing T1
object into the x::Int field of the to-be-created T1 object, which
doesn't make sense.Regards
