mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22: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
|
else
|
||||||
{
|
{
|
||||||
auto methodInst = GetRawMethodInstanceAtIdx(checkInstance, operatorDef->mIdx);
|
auto methodInst = GetRawMethodInstanceAtIdx(checkInstance, operatorDef->mIdx);
|
||||||
|
if (methodInst == NULL)
|
||||||
|
continue;
|
||||||
if (methodInst->GetParamCount() != 1)
|
if (methodInst->GetParamCount() != 1)
|
||||||
{
|
{
|
||||||
AssertErrorState();
|
AssertErrorState();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue