mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +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);
|
||||
|
||||
// Check enum cases for duplicates
|
||||
if (mCurTypeInstance->IsEnum())
|
||||
if ((mCurTypeInstance->IsEnum()) && (!mCurTypeInstance->IsUnspecializedTypeVariation()))
|
||||
{
|
||||
auto underlyingType = fieldInstance->mResolvedType->GetUnderlyingType();
|
||||
if ((fieldDef->IsEnumCaseEntry()) && (fieldInstance->mConstIdx != -1) && (underlyingType->IsIntegral()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue