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:
parent
5b0ccb6dbe
commit
f466a2ea57
2 changed files with 23 additions and 0 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue