Help with ::

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

3 Likes