1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Operator extension fix

This commit is contained in:
Brian Fiete 2020-10-02 13:12:34 -07:00
parent a80410786d
commit 9650e10e88

View file

@ -10682,6 +10682,8 @@ BfIRValue BfModule::CastToValue(BfAstNode* srcNode, BfTypedValue typedVal, BfTyp
else
{
auto methodInst = GetRawMethodInstanceAtIdx(checkInstance, operatorDef->mIdx);
if (methodInst == NULL)
continue;
if (methodInst->GetParamCount() != 1)
{
AssertErrorState();