mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed operator overload error checks
This commit is contained in:
parent
023c832565
commit
c1a1baea5f
1 changed files with 2 additions and 1 deletions
|
@ -19195,7 +19195,8 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup,
|
|||
refNode = operatorDef->mOperatorDeclaration->mCommas[0];
|
||||
Fail("Conversion operators must declare one parameter", refNode);
|
||||
}
|
||||
else if ((!methodInstance->mIsUnspecialized) ||
|
||||
else if ((methodInstance->mMethodInfoEx == NULL) ||
|
||||
(methodInstance->mMethodInfoEx->mMethodGenericArguments.IsEmpty()) ||
|
||||
((methodInstance->mIsUnspecialized) && (!methodInstance->mIsUnspecializedVariation)))
|
||||
{
|
||||
auto checkParam0 = mCurMethodInstance->GetParamType(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue