mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed extern method generic arg case
This commit is contained in:
parent
8c79e26d40
commit
6c714bacdc
3 changed files with 26 additions and 6 deletions
|
@ -2287,14 +2287,17 @@ bool BfMethodMatcher::CheckMethod(BfTypeInstance* targetTypeInstance, BfTypeInst
|
|||
auto genericParamType = (BfGenericParamType*)externType;
|
||||
if (genericParamType->mGenericParamKind == BfGenericParamKind_Method)
|
||||
{
|
||||
auto genericArg = (*genericArgumentsSubstitute)[genericParamType->mGenericParamIdx];
|
||||
if (genericArg == NULL)
|
||||
if (genericArgumentsSubstitute != NULL)
|
||||
{
|
||||
if (allowEmptyGenericSet.Contains(genericParamType->mGenericParamIdx))
|
||||
continue;
|
||||
goto NoMatch;
|
||||
auto genericArg = (*genericArgumentsSubstitute)[genericParamType->mGenericParamIdx];
|
||||
if (genericArg == NULL)
|
||||
{
|
||||
if (allowEmptyGenericSet.Contains(genericParamType->mGenericParamIdx))
|
||||
continue;
|
||||
goto NoMatch;
|
||||
}
|
||||
externType = genericArg;
|
||||
}
|
||||
externType = genericArg;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue