# Using parametric type inside outer parametric constructor

**URL:** <https://discourse.julialang.org/t/using-parametric-type-inside-outer-parametric-constructor/53388>\
**Category:** General Usage\
**Tags:** linearalgebra, parametric-types, potential-bug\
**Created:** [January 15, 2021, 3:37pm UTC](https://discourse.julialang.org/t/using-parametric-type-inside-outer-parametric-constructor/53388 "2021-01-15T15:37:33Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![schneiderfelipe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schneiderfelipe/32/18004_2.png) [@schneiderfelipe](https://discourse.julialang.org/u/schneiderfelipe)\
**Post date:** [January 15, 2021, 5:41pm UTC](https://discourse.julialang.org/t/using-parametric-type-inside-outer-parametric-constructor/53388/9 "2021-01-15T17:41:15Z")

</div>

Nice! I think I have a better understanding of it now.

But that’s still odd that everything “works” when I omit the `A = Matrix{T}(undef, d, d)` in the last function of my example (that is, Julia doesn’t complain if `T` is not mentioned, even though the function signature is the same). Of course, I would rather _not_ `data` to zeros though…

---

_[View the full topic](https://discourse.julialang.org/t/using-parametric-type-inside-outer-parametric-constructor/53388)._
