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

Fixed attributes on typed primitives

This commit is contained in:
Brian Fiete 2021-10-31 11:24:29 -07:00
parent fdcfba8bad
commit d55ecbe902

View file

@ -3497,7 +3497,7 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
attrTarget = BfAttributeTargets_Enum;
else if (typeInstance->IsInterface())
attrTarget = BfAttributeTargets_Interface;
else if (typeInstance->IsStruct())
else if ((typeInstance->IsStruct()) || (typeInstance->IsTypedPrimitive()))
attrTarget = BfAttributeTargets_Struct;
else
attrTarget = BfAttributeTargets_Class;