This commit is contained in:
nub31
2025-07-07 19:04:09 +02:00
parent 85066f8678
commit 810cc03eed

View File

@@ -378,7 +378,8 @@ public partial class QBEGenerator
EmitBlock(body, scope);
if (body.Statements.LastOrDefault() is not BoundReturn)
// Implicit return for void functions if no explicit return has been set
if (returnType is NubVoidType && body.Statements is [.., not BoundReturn])
{
if (returnType is NubVoidType)
{