# Simple type question

**URL:** <https://discourse.julialang.org/t/simple-type-question/15257>\
**Category:** General Usage\
**Created:** [September 20, 2018, 11:05pm UTC](https://discourse.julialang.org/t/simple-type-question/15257 "2018-09-20T23:05:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Qiyamah](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/qiyamah/32/2660_2.png) [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Post date:** [September 20, 2018, 11:05pm UTC](https://discourse.julialang.org/t/simple-type-question/15257/1 "2018-09-20T23:05:09Z")

</div>

```nohighlight
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

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

struct HandlerContext{N,M,T}
end

```

What is wrong with this?  
Thanks

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [September 20, 2018, 11:30pm UTC](https://discourse.julialang.org/t/simple-type-question/15257/2 "2018-09-20T23:30:26Z")

</div>

You haven’t told us what TwoLegged does.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [September 21, 2018, 5:33am UTC](https://discourse.julialang.org/t/simple-type-question/15257/3 "2018-09-21T05:33:59Z")

</div>

please make the example **self-contained**

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

<div class="post-metadata">

**Author:** ![y4lu](https://avatars.discourse-cdn.com/v4/letter/y/47e85d/32.png) [@y4lu](https://discourse.julialang.org/u/y4lu)\
**Post date:** [September 21, 2018, 12:17pm UTC](https://discourse.julialang.org/t/simple-type-question/15257/4 "2018-09-21T12:17:11Z")

</div>

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