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

Made append field check work with extensions

This commit is contained in:
Brian Fiete 2023-02-27 06:02:27 -05:00
parent 7a2fbdfc30
commit 40165bc33b

View file

@ -5465,6 +5465,7 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
Fail("Append fields can only be declared in classes", nameRefNode, true);
else if (resolvedFieldType->IsGenericParam())
{
SetAndRestoreValue<BfFieldDef*> prevTypeRef(mContext->mCurTypeState->mCurFieldDef, fieldDef);
auto genericParamInstance = GetGenericParamInstance((BfGenericParamType*)resolvedFieldType);
if (genericParamInstance != NULL)
{