Repository navigation
cgen: fix codegen for return on last statement of return IfExpr - #23551
Conversation
|
Connected to Huly®: V_0.6-21979 |
return IfExpr
|
So you're just making sure the |
Yes. Just like we do in |
|
I think that's a mistake as well. A return inside a return makes no sense. |
It does make sense a bit, since in the I do think that in many cases, such long if expressions, can become convoluted, and allow for bugs, but the language does allow them :-| . |
|
In any case, unless they are banned, V should not produce garbage, that fails at runtime (the branch with the return was executed in the issue, but the output was not, what was returned, but empty values). |
Fix #23550