1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Ctor hiding fix

This commit is contained in:
Brian Fiete 2024-11-24 16:48:28 -05:00
parent 82c1125a68
commit 289d5026c2

View file

@ -6244,7 +6244,7 @@ void BfModule::DoTypeInstanceMethodProcessing(BfTypeInstance* typeInstance)
// Generate all methods. Pass 0
for (auto methodDef : typeDef->mMethods)
{
if (methodDef->mMethodType == BfMethodType_Ctor)
if ((methodDef->mMethodType == BfMethodType_Ctor) && (!methodDef->mIsStatic))
{
if (methodDef->mMethodDeclaration == NULL)
defaultCtor = methodDef;