mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed assignment operator overloading
This commit is contained in:
parent
6bd1eb1cc4
commit
cd96114490
1 changed files with 4 additions and 2 deletions
|
@ -10811,10 +10811,12 @@ bool BfModule::CompareMethodSignatures(BfMethodInstance* methodA, BfMethodInstan
|
|||
return false;
|
||||
auto operatorA = (BfOperatorDef*)methodA->mMethodDef;
|
||||
auto operatorB = (BfOperatorDef*)methodB->mMethodDef;
|
||||
if (operatorA->mOperatorDeclaration->mBinOp != operatorB->mOperatorDeclaration->mBinOp)
|
||||
return false;
|
||||
if (operatorA->mOperatorDeclaration->mUnaryOp != operatorB->mOperatorDeclaration->mUnaryOp)
|
||||
return false;
|
||||
if (operatorA->mOperatorDeclaration->mBinOp != operatorB->mOperatorDeclaration->mBinOp)
|
||||
return false;
|
||||
if (operatorA->mOperatorDeclaration->mAssignOp != operatorB->mOperatorDeclaration->mAssignOp)
|
||||
return false;
|
||||
if (operatorA->mOperatorDeclaration->mIsConvOperator)
|
||||
{
|
||||
if (!BfTypeUtils::TypeEquals(methodA->mReturnType, methodB->mReturnType, implOwner))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue