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:
parent
7a2fbdfc30
commit
40165bc33b
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue