Looks like a bug and flies like a bug, is it a bug?

julia> struct T end

julia> (t::TT)(x) where {TT<:T} = x
ERROR: function type in method definition is not a type
Stacktrace:
 [1] top-level scope at none:0
1 Like

I think this is

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

Also, please consider choosing a more specific title for your topic.

4 Likes