mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Properly skip comptime attributes for non-matching extensions
This commit is contained in:
parent
4373381088
commit
63b053d7d7
1 changed files with 6 additions and 0 deletions
|
@ -2406,6 +2406,12 @@ void BfModule::HandleCEAttributes(CeEmitContext* ceEmitContext, BfTypeInstance*
|
|||
{
|
||||
for (auto& customAttribute : customAttributes->mAttributes)
|
||||
{
|
||||
if ((customAttribute.mDeclaringType->IsExtension()) && (typeInstance->IsGenericTypeInstance()))
|
||||
{
|
||||
if (!typeInstance->IsTypeMemberIncluded(customAttribute.mDeclaringType, typeInstance->mTypeDef, this))
|
||||
continue;
|
||||
}
|
||||
|
||||
auto attrType = customAttribute.mType;
|
||||
|
||||
BfMethodInstance* methodInstance = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue