# Help with ::

**URL:** <https://discourse.julialang.org/t/help-with/98544>\
**Category:** New to Julia\
**Created:** [May 9, 2023, 11:35am UTC](https://discourse.julialang.org/t/help-with/98544 "2023-05-09T11:35:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [May 9, 2023, 11:51am UTC](https://discourse.julialang.org/t/help-with/98544/2 "2023-05-09T11:51:55Z")

</div>

> [@VISHWARATH\_T](#):
>
> However, I find that it does not throw an error when any other data types like float is used.

Probably you are in a running Julia session where you previously defined a version of `num_lang` that didn’t have the type restriction, and it’s still in memory, so the old version is being called instead of `num_lang(::Int)`. Restart Julia and it should work as expected.

PS. Quote your code (and don’t post screenshots): [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)

---

_[View the full topic](https://discourse.julialang.org/t/help-with/98544)._
