odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.13k stars 551 forks source link

Errors in parapoly expansions should show context about the parameters and where they are used #3843

Open Beefster09 opened 6 days ago

Beefster09 commented 6 days ago

Whenever I have issues with parapoly procedures, it's often a struggle to figure out what invocation is making it angry.

It would be helpful to know what the compile-time parameters are set for each case of the error. Ideally also the call sites, but since that list could be quite large, I could understand not showing anything or only showing a subset of the call sites.

Feoramund commented 6 days ago

Do you have a minimal example test case?