1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

Fixed case where tuple has var member

This commit is contained in:
Brian Fiete 2021-12-27 10:01:03 -05:00
parent da58610736
commit f13fc76cd0

View file

@ -10569,8 +10569,11 @@ BfType* BfModule::ResolveTypeRef(BfTypeReference* typeRef, BfPopulateType popula
wantGeneric = true;
if (type->IsUnspecializedType())
isUnspecialized = true;
BF_ASSERT(!type->IsVar());
if (type->IsVar())
{
mContext->mResolvedTypes.RemoveEntry(resolvedEntry);
return ResolveTypeResult(typeRef, NULL, populateType, resolveFlags);
}
types.push_back(type);
names.push_back(fieldName);
}