mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed compond assignment operator overloads
This commit is contained in:
parent
0c7597fe60
commit
ca64ea1f28
3 changed files with 66 additions and 14 deletions
|
@ -16101,7 +16101,7 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup)
|
|||
Fail("Assignment operators must declare one parameter", paramErrorRefNode);
|
||||
}
|
||||
|
||||
if (mCurMethodInstance->mReturnType->IsVoid())
|
||||
if (!mCurMethodInstance->mReturnType->IsVoid())
|
||||
{
|
||||
Fail("The return type for assignment operator must be 'void'", operatorDef->mOperatorDeclaration->mReturnType);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue