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

Allow emissions of default ctor

This commit is contained in:
Brian Fiete 2024-11-21 04:51:33 -05:00
parent 295057b026
commit 490324a300

View file

@ -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))