From e71cb928a6f42eea42677eb594e8052b0150d591 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 17 Apr 2023 13:31:29 -0700 Subject: [PATCH] Fixed HandleCEAttributes with unspecialized variations --- IDEHelper/Compiler/BfModuleTypeUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDEHelper/Compiler/BfModuleTypeUtils.cpp b/IDEHelper/Compiler/BfModuleTypeUtils.cpp index 19afcbe7..5f4d12a3 100644 --- a/IDEHelper/Compiler/BfModuleTypeUtils.cpp +++ b/IDEHelper/Compiler/BfModuleTypeUtils.cpp @@ -2406,7 +2406,7 @@ void BfModule::HandleCEAttributes(CeEmitContext* ceEmitContext, BfTypeInstance* { for (auto& customAttribute : customAttributes->mAttributes) { - if ((customAttribute.mDeclaringType->IsExtension()) && (typeInstance->IsGenericTypeInstance())) + if ((customAttribute.mDeclaringType->IsExtension()) && (typeInstance->IsGenericTypeInstance()) && (!typeInstance->IsUnspecializedTypeVariation())) { if (!typeInstance->IsTypeMemberIncluded(customAttribute.mDeclaringType, typeInstance->mTypeDef, this)) continue;