mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed type population issue with enum UnderlyingType
This commit is contained in:
parent
cf78a02ab4
commit
5416d30bf1
2 changed files with 4 additions and 0 deletions
|
@ -8325,6 +8325,8 @@ BfType* BfModule::ResolveInnerType(BfType* outerType, BfAstNode* typeRef, BfPopu
|
|||
|
||||
if ((outerTypeInstance->IsEnum()) && (findName == "UnderlyingType"))
|
||||
{
|
||||
if (outerTypeInstance->IsDataIncomplete())
|
||||
PopulateType(outerTypeInstance);
|
||||
auto underlyingType = outerTypeInstance->GetUnderlyingType();
|
||||
if (underlyingType != NULL)
|
||||
return underlyingType;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue