mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed generic operator overload method generic arg inference from toType
This commit is contained in:
parent
0de32f7b34
commit
dd2ecfb316
4 changed files with 38 additions and 18 deletions
|
@ -19195,7 +19195,7 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup,
|
|||
refNode = operatorDef->mOperatorDeclaration->mCommas[0];
|
||||
Fail("Conversion operators must declare one parameter", refNode);
|
||||
}
|
||||
else
|
||||
else if ((methodInstance->mIsUnspecialized) && (!methodInstance->mIsUnspecializedVariation))
|
||||
{
|
||||
auto checkParam0 = mCurMethodInstance->GetParamType(0);
|
||||
if ((checkParam0->IsRef()) && (!checkParam0->IsOut()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue