odin-lang / Odin

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

fix unreachable hit when param and/or return have complex inits #3710

Closed laytan closed 4 weeks ago

laytan commented 4 weeks ago

Fixes #3630

some expressions allowed in the default param/return values may start blocks, but the entry block was then started again here, I say again because the entry block does already get started before the params/returns are started. To me it looked like that had to do with the context variable being correctly added to the declaration block, this now does that another way too.