mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-26 03:28:02 +02:00
Fixed type lookup for comptime emitted type refs in specialized generics
This commit is contained in:
parent
d34976864c
commit
723010fd9d
4 changed files with 103 additions and 28 deletions
|
@ -41,7 +41,8 @@ enum BfResolveTypeRefFlags
|
|||
BfResolveTypeRefFlag_AllowImplicitConstExpr = 0x20000,
|
||||
BfResolveTypeRefFlag_AllowUnboundGeneric = 0x40000,
|
||||
BfResolveTypeRefFlag_ForceUnboundGeneric = 0x80000,
|
||||
BfResolveTypeRefFlag_IgnoreProtection = 0x100000
|
||||
BfResolveTypeRefFlag_IgnoreProtection = 0x100000,
|
||||
BfResolveTypeRefFlag_SpecializedProject = 0x200000
|
||||
};
|
||||
|
||||
enum BfTypeNameFlags : uint16
|
||||
|
@ -1721,8 +1722,15 @@ public:
|
|||
|
||||
struct BfTypeLookupEntry
|
||||
{
|
||||
enum Flags : uint8
|
||||
{
|
||||
Flags_None,
|
||||
Flags_SpecializedProject
|
||||
};
|
||||
|
||||
BfAtomComposite mName;
|
||||
int mNumGenericParams;
|
||||
int16 mNumGenericParams;
|
||||
Flags mFlags;
|
||||
uint32 mAtomUpdateIdx;
|
||||
BfTypeDef* mUseTypeDef;
|
||||
|
||||
|
@ -1730,6 +1738,7 @@ struct BfTypeLookupEntry
|
|||
{
|
||||
return (mName == rhs.mName) &&
|
||||
(mNumGenericParams == rhs.mNumGenericParams) &&
|
||||
(mFlags == rhs.mFlags) &&
|
||||
(mUseTypeDef == rhs.mUseTypeDef);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue