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:
parent
a80410786d
commit
9650e10e88
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue