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

Fixed data cycle with interface decl "struct A : IEnumerable<Inner>"

This commit is contained in:
Brian Fiete 2020-01-31 16:11:31 -08:00
parent 87ac9e65cf
commit df76b17c49

View file

@ -5165,7 +5165,8 @@ BfTypeInstance* BfModule::GetOuterType(BfType* type)
BF_ASSERT((intptr)typeGenericArguments.size() >= (intptr)outerTypeDef->mGenericParamDefs.size());
typeGenericArguments.resize(outerTypeDef->mGenericParamDefs.size());
auto outerType = ResolveTypeDef(outerTypeDef, typeGenericArguments, BfPopulateType_Declaration);
//auto outerType = ResolveTypeDef(outerTypeDef, typeGenericArguments, BfPopulateType_Declaration);
auto outerType = ResolveTypeDef(outerTypeDef, typeGenericArguments, BfPopulateType_Identity);
if (outerType == NULL)
return NULL;
return outerType->ToTypeInstance();