mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Allow emissions of default ctor
This commit is contained in:
parent
295057b026
commit
490324a300
1 changed files with 6 additions and 0 deletions
|
@ -25070,6 +25070,12 @@ void BfModule::DoMethodDeclaration(BfMethodDeclaration* methodDeclaration, bool
|
|||
if ((checkMethod->mCommutableKind == BfCommutableKind_Reverse) || (methodDef->mCommutableKind == BfCommutableKind_Reverse))
|
||||
silentlyAllow = true;
|
||||
|
||||
if (checkMethod->mMethodDeclaration == NULL)
|
||||
{
|
||||
// This can allow emission of a default ctor if we've already auto-added a default ctor
|
||||
silentlyAllow = true;
|
||||
}
|
||||
|
||||
if (!silentlyAllow)
|
||||
{
|
||||
if ((!methodDef->mName.IsEmpty()) || (checkMethodInstance->mMethodDef->mIsOperator))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue