mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
ResolveGenericType arg fix
This commit is contained in:
parent
f7d2e57077
commit
a874bab0e4
1 changed files with 2 additions and 2 deletions
|
@ -2130,7 +2130,7 @@ bool BfMethodMatcher::CheckMethod(BfTypeInstance* targetTypeInstance, BfTypeInst
|
||||||
if ((genericArgumentsSubstitute != NULL) && (wantType->IsUnspecializedType()))
|
if ((genericArgumentsSubstitute != NULL) && (wantType->IsUnspecializedType()))
|
||||||
{
|
{
|
||||||
wantType = typeUnspecMethodInstance->GetParamType(paramIdx);
|
wantType = typeUnspecMethodInstance->GetParamType(paramIdx);
|
||||||
auto resolvedType = mModule->ResolveGenericType(wantType, typeGenericArguments, genericArgumentsSubstitute, false);
|
auto resolvedType = mModule->ResolveGenericType(wantType, typeGenericArguments, genericArgumentsSubstitute, mModule->mCurTypeInstance, false);
|
||||||
if (resolvedType == NULL)
|
if (resolvedType == NULL)
|
||||||
goto NoMatch;
|
goto NoMatch;
|
||||||
wantType = resolvedType;
|
wantType = resolvedType;
|
||||||
|
@ -2250,7 +2250,7 @@ bool BfMethodMatcher::CheckMethod(BfTypeInstance* targetTypeInstance, BfTypeInst
|
||||||
}
|
}
|
||||||
if ((genericArgumentsSubstitute != NULL) && (returnType->IsUnspecializedType()))
|
if ((genericArgumentsSubstitute != NULL) && (returnType->IsUnspecializedType()))
|
||||||
{
|
{
|
||||||
auto resolvedType = mModule->ResolveGenericType(returnType, typeGenericArguments, genericArgumentsSubstitute, false);
|
auto resolvedType = mModule->ResolveGenericType(returnType, typeGenericArguments, genericArgumentsSubstitute, mModule->mCurTypeInstance, false);
|
||||||
if (resolvedType == NULL)
|
if (resolvedType == NULL)
|
||||||
goto NoMatch;
|
goto NoMatch;
|
||||||
returnType = resolvedType;
|
returnType = resolvedType;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue