ERROR: type UnionAll has no field name

The following code is taken from DiffEqBase.jl, and I am trying to update it to v0.6. However, I get the following error:

julia> type ODESolution{uType,tType,rateType,P,A,IType}
         u::uType
         t::tType
         k::rateType
         prob::P
         alg::A
         interp::IType
         dense::Bool
         tslocation::Int
       end

julia> (sol::ODESolution)(t,deriv::Type=Val{0};idxs=nothing) = sol.interp(t,idxs,deriv)
ERROR: type UnionAll has no field name
Stacktrace:
 [1] kwftype(::Any) at .\boot.jl:239

I can even narrow it down a bit, and it still errors (with the same error)

 (sol::ODESolution)(t,deriv;idxs=nothing) = sol.interp(t,idxs,deriv)

Is this a known issue? Or is there some syntax change I am hitting here?

It’s a bug.

1 Like

Is there already an issue for it?

These are for .parameters at least:

https://github.com/JuliaLang/julia/issues/20332

https://github.com/JuliaLang/julia/issues/20781

It’s not for .parameters… I don’t think there’s one for kwftype yet.