1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed field lookups during type alias resolves

This commit is contained in:
Brian Fiete 2020-06-29 17:08:31 -07:00
parent 3a7b7e559b
commit fb421ca9d0

View file

@ -932,6 +932,7 @@ bool BfModule::PopulateType(BfType* resolvedTypeRef, BfPopulateType populateType
auto typeAliasDecl = (BfTypeAliasDeclaration*)typeDef->mTypeDeclaration;
BfType* aliasToType = NULL;
resolvedTypeRef->mDefineState = BfTypeDefineState_ResolvingBaseType;
BfTypeState typeState(mCurTypeInstance, mContext->mCurTypeState);
typeState.mPopulateType = populateType;
typeState.mCurBaseTypeRef = typeAliasDecl->mAliasToType;