mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Allow CreateObject for default ctors with append allocs
This commit is contained in:
parent
aba01b2cc8
commit
3338f3c069
5 changed files with 61 additions and 14 deletions
|
@ -5536,9 +5536,10 @@ void BfModule::DoTypeInstanceMethodProcessing(BfTypeInstance* typeInstance)
|
|||
}
|
||||
if (typeInstance->IncludeAllMethods())
|
||||
implRequired = true;
|
||||
|
||||
// "AssumeInstantiated" also forces default ctor
|
||||
if (((typeInstance->mAlwaysIncludeFlags & BfAlwaysIncludeFlag_AssumeInstantiated) != 0) &&
|
||||
(methodDef->mMethodType == BfMethodType_Ctor) && (methodDef->mParams.IsEmpty()))
|
||||
(methodDef->IsDefaultCtor()))
|
||||
implRequired = true;
|
||||
|
||||
if ((typeOptionsIncludeAll) && (ApplyTypeOptionMethodFilters(true, methodDef, typeOptions)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue