mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Skip enum dup check on enum unspecialized variations
This commit is contained in:
parent
78f9145254
commit
03f5c418ed
1 changed files with 1 additions and 1 deletions
|
@ -6148,7 +6148,7 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
|
||||||
typeInstance->mModule->ResolveConstField(typeInstance, fieldInstance, fieldDef);
|
typeInstance->mModule->ResolveConstField(typeInstance, fieldInstance, fieldDef);
|
||||||
|
|
||||||
// Check enum cases for duplicates
|
// Check enum cases for duplicates
|
||||||
if (mCurTypeInstance->IsEnum())
|
if ((mCurTypeInstance->IsEnum()) && (!mCurTypeInstance->IsUnspecializedTypeVariation()))
|
||||||
{
|
{
|
||||||
auto underlyingType = fieldInstance->mResolvedType->GetUnderlyingType();
|
auto underlyingType = fieldInstance->mResolvedType->GetUnderlyingType();
|
||||||
if ((fieldDef->IsEnumCaseEntry()) && (fieldInstance->mConstIdx != -1) && (underlyingType->IsIntegral()))
|
if ((fieldDef->IsEnumCaseEntry()) && (fieldInstance->mConstIdx != -1) && (underlyingType->IsIntegral()))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue