1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed interface reifications

This commit is contained in:
Brian Fiete 2020-09-16 15:55:45 -07:00
parent 8bf7b6a4a7
commit 2387bd6be9

View file

@ -5171,8 +5171,8 @@ void BfCompiler::PopulateReified()
} }
// Check reifications forced by virtuals or interfaces // Check reifications forced by virtuals or interfaces
if ((!mIsResolveOnly) && (typeInst != NULL) && (typeInst->mIsReified) && (!typeInst->IsUnspecializedType()) if ((!mIsResolveOnly) && (typeInst != NULL) && (typeInst->mIsReified) && (!typeInst->IsUnspecializedType()) && (!typeInst->IsInterface()) &&
&& (typeInst->mHasBeenInstantiated) && (!typeInst->IsIncomplete())) (typeInst->mHasBeenInstantiated) && (!typeInst->IsIncomplete()))
{ {
// If we have chained methods, make sure we implement the chain members if the chain head is implemented and reified // If we have chained methods, make sure we implement the chain members if the chain head is implemented and reified
if (typeInst->mTypeDef->mIsCombinedPartial) if (typeInst->mTypeDef->mIsCombinedPartial)