1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed append ctors in classes with emissions

This commit is contained in:
Brian Fiete 2022-08-27 09:23:53 -07:00
parent f8f95e9de3
commit 86a80f4d18

View file

@ -2056,6 +2056,9 @@ void BfDefBuilder::FinishTypeDef(bool wantsToString)
{
mCurTypeDef->mHasAppendCtor = true;
bool isHandled = !method->mParams.IsEmpty() && method->mParams[0]->mParamKind == BfParamKind_AppendIdx;
if (!isHandled)
{
auto methodDef = new BfMethodDef();
mCurTypeDef->mMethods.Insert(methodIdx + 1, methodDef);
BF_ASSERT(mCurDeclaringTypeDef != NULL);
@ -2091,6 +2094,7 @@ void BfDefBuilder::FinishTypeDef(bool wantsToString)
}
}
}
}
if (method->mMethodType == BfMethodType_CtorClear)
{
ctorClear = method;