Simple type question

julia> TwoLegged()
ERROR: MethodError: no method matching get_name(::Type{Handler.HandlerContext{##WithLegsName#721,M,T} where T where M})
Closest candidates are:
  get_name(::Type{HandlerContext{N,M,T}}) where {N, M, T} at Handler.jl:50

here are the definitions

get_name(::Type{HandlerContext{N,M,T}}) where {N,M,T}= N

struct HandlerContext{N,M,T}
end

What is wrong with this?
Thanks

You haven’t told us what TwoLegged does.

2 Likes

please make the example self-contained

1 Like

Would you call it a type ownership problem?
It probably needs to export HandlerContext if theres a Handler module