mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Allow boxed types to utilize comptime methods
This commit is contained in:
parent
8bc5d09787
commit
2932fceae4
7 changed files with 114 additions and 29 deletions
|
@ -1554,6 +1554,7 @@ BfTypeInstance::~BfTypeInstance()
|
|||
if ((mTypeDef != NULL) && (mTypeDef->mEmitParent != NULL))
|
||||
{
|
||||
mMethodInstanceGroups.Clear();
|
||||
BfLogSys(mModule->mSystem, "Type %p dtor deleting typeDef %p\n", this, mTypeDef);
|
||||
delete mTypeDef;
|
||||
}
|
||||
}
|
||||
|
@ -2627,6 +2628,12 @@ void BfTupleType::Finish()
|
|||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
BfBoxedType::~BfBoxedType()
|
||||
{
|
||||
if (mTypeDef->mEmitParent != NULL)
|
||||
mTypeDef = mTypeDef->mEmitParent;
|
||||
}
|
||||
|
||||
BfType* BfBoxedType::GetModifiedElementType()
|
||||
{
|
||||
if ((mBoxedFlags & BoxedFlags_StructPtr) != 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue