mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed return of a 'var'
This commit is contained in:
parent
1c8a2a8e44
commit
1de552e940
1 changed files with 5 additions and 1 deletions
|
@ -4772,7 +4772,11 @@ void BfModule::Visit(BfReturnStatement* returnStmt)
|
|||
}
|
||||
}
|
||||
|
||||
if (retValue.mType->IsVoid())
|
||||
if (retValue.mType->IsVar())
|
||||
{
|
||||
EmitReturn(BfIRValue());
|
||||
}
|
||||
else if (retValue.mType->IsVoid())
|
||||
{
|
||||
if (retType->IsVoid())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue