mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed tuple type with generics with extern constraints
This commit is contained in:
parent
b298b232ef
commit
78524657ba
1 changed files with 5 additions and 0 deletions
|
@ -10358,10 +10358,15 @@ BfType* BfModule::ResolveTypeRef(BfTypeReference* typeRef, BfPopulateType popula
|
|||
for (int i = 0; i < parentTypeInstance->mGenericTypeInfo->mGenericParams.size(); i++)
|
||||
{
|
||||
actualTupleType->mGenericTypeInfo->mGenericParams.push_back(parentTypeInstance->mGenericTypeInfo->mGenericParams[i]->AddRef());
|
||||
}
|
||||
|
||||
for (int i = 0; i < parentTypeInstance->mGenericTypeInfo->mTypeGenericArguments.size(); i++)
|
||||
{
|
||||
actualTupleType->mGenericTypeInfo->mTypeGenericArguments.push_back(parentTypeInstance->mGenericTypeInfo->mTypeGenericArguments[i]);
|
||||
auto typeGenericArg = actualTupleType->mGenericTypeInfo->mTypeGenericArguments[i];
|
||||
actualTupleType->mGenericTypeInfo->mIsUnspecialized |= typeGenericArg->IsGenericParam() || typeGenericArg->IsUnspecializedType();
|
||||
}
|
||||
|
||||
CheckUnspecializedGenericType(actualTupleType, populateType);
|
||||
if (isUnspecialized)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue