1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 23:34:10 +02:00

Fixed default ctor base ctor calling when base has extensions

This commit is contained in:
Brian Fiete 2022-02-22 08:14:17 -08:00
parent c91c81f77d
commit c2490278fa

View file

@ -17622,6 +17622,12 @@ void BfModule::EmitCtorBody(bool& skipBody)
{ {
if (checkMethodDef->mParams.size() == 0) if (checkMethodDef->mParams.size() == 0)
{ {
if (matchedMethod != NULL)
{
// Has multiple matched methods - can happen from extensions
matchedMethod = NULL;
break;
}
matchedMethod = checkMethodDef; matchedMethod = checkMethodDef;
} }
else if (isHiddenGenerated) else if (isHiddenGenerated)