# What is the type of called function in this case?

**URL:** <https://discourse.julialang.org/t/what-is-the-type-of-called-function-in-this-case/30038>\
**Category:** General Usage\
**Created:** [October 18, 2019, 12:28am UTC](https://discourse.julialang.org/t/what-is-the-type-of-called-function-in-this-case/30038 "2019-10-18T00:28:27Z")\
**Posts on this page:** 2\
**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:** [October 18, 2019, 12:28am UTC](https://discourse.julialang.org/t/what-is-the-type-of-called-function-in-this-case/30038/1 "2019-10-18T00:28:27Z")

</div>

```nohighlight
struct MM
   a::Int
end

function (m::MM)(x::Int)
   MM(m.a+x)
end

m = MM(11)
m(5) # what is the typeof the function called here?

```

What really happens when I say m(5), is there a function like apply(m,5) somewhere?

Thanks

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [October 18, 2019, 12:54am UTC](https://discourse.julialang.org/t/what-is-the-type-of-called-function-in-this-case/30038/2 "2019-10-18T00:54:29Z")

</div>

No. The type of the callee is `MM`. There’s no `Function` involved.
