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

Properly use method generic arguments from methodrefs

This commit is contained in:
Brian Fiete 2025-02-01 12:19:49 -08:00
parent 5b0ccb6dbe
commit f466a2ea57
2 changed files with 23 additions and 0 deletions

View file

@ -10500,6 +10500,12 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
methodGenericArguments = methodInstance->mMethodInfoEx->mMethodGenericArguments;
methodMatcher.mBestMethodInstance = mModule->GetMethodInstance(methodInstance->GetOwner(), methodInstance->mMethodDef, methodGenericArguments);
}
if (methodInstance->mMethodInfoEx != NULL)
{
methodMatcher.mBestMethodGenericArguments = methodInstance->mMethodInfoEx->mMethodGenericArguments;
}
methodMatcher.mBestMethodTypeInstance = methodInstance->GetOwner();
if (methodInstance->HasThis())
{