1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed extension method override error check

This commit is contained in:
Brian Fiete 2022-03-01 12:05:10 -08:00
parent 9d9cd528da
commit b438f2166d

View file

@ -22280,7 +22280,7 @@ void BfModule::SetupIRFunction(BfMethodInstance* methodInstance, StringImpl& man
auto checkMethodInstance = mCurTypeInstance->mMethodInstanceGroups[checkMethod->mIdx].mDefault; auto checkMethodInstance = mCurTypeInstance->mMethodInstanceGroups[checkMethod->mIdx].mDefault;
if (checkMethodInstance == NULL) if (checkMethodInstance == NULL)
continue; continue;
if (checkMethodInstance->mIRFunction == prevFunc) if ((checkMethodInstance->mIRFunction == prevFunc) && (checkMethodInstance->mMethodDef->mMethodDeclaration != NULL))
{ {
BfAstNode* refNode = methodDef->GetRefNode(); BfAstNode* refNode = methodDef->GetRefNode();
if (auto propertyMethodDeclaration = methodDef->GetPropertyMethodDeclaration()) if (auto propertyMethodDeclaration = methodDef->GetPropertyMethodDeclaration())