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

Fixed invalid extension override assumption

This commit is contained in:
Brian Fiete 2025-02-18 13:45:45 -08:00
parent aaac1470df
commit 6e0cabf8aa

View file

@ -25598,7 +25598,7 @@ void BfModule::DoMethodDeclaration(BfMethodDeclaration* methodDeclaration, bool
auto checkMethodInstance = typeInstance->mMethodInstanceGroups[checkMethod->mIdx].mDefault; auto checkMethodInstance = typeInstance->mMethodInstanceGroups[checkMethod->mIdx].mDefault;
if (checkMethodInstance == NULL) if (checkMethodInstance == NULL)
{ {
if ((methodDef->mDeclaringType->IsExtension()) && (!checkMethod->mDeclaringType->IsExtension())) if (methodDef->mDeclaringType->IsExtension())
checkMethodInstance = GetRawMethodInstanceAtIdx(typeInstance, checkMethod->mIdx); checkMethodInstance = GetRawMethodInstanceAtIdx(typeInstance, checkMethod->mIdx);
if (checkMethodInstance == NULL) if (checkMethodInstance == NULL)
continue; continue;