1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +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; attrTarget = BfAttributeTargets_Enum;
else if (typeInstance->IsInterface()) else if (typeInstance->IsInterface())
attrTarget = BfAttributeTargets_Interface; attrTarget = BfAttributeTargets_Interface;
else if (typeInstance->IsStruct()) else if ((typeInstance->IsStruct()) || (typeInstance->IsTypedPrimitive()))
attrTarget = BfAttributeTargets_Struct; attrTarget = BfAttributeTargets_Struct;
else else
attrTarget = BfAttributeTargets_Class; attrTarget = BfAttributeTargets_Class;