JuliaTeachingCTU / Scientific-Programming-in-Julia

Repository for B0M36SPJ
https://juliateachingctu.github.io/Scientific-Programming-in-Julia/dev/
MIT License
76 stars 12 forks source link

Correct type signature #89

Closed Kunz-David closed 1 year ago

Kunz-David commented 1 year ago

Is it possible to do it with eats(::Wolf, ::Sheep) = true? I managed only with eats(::Animal{Wolf}, ::Animal{Sheep}) = true.

nmheim commented 1 year ago

Yes you are right, mistake that crept in from last year. Thank you!

Kunz-David commented 1 year ago

Happy to help :)