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

Fixed default ctor detection

This commit is contained in:
Brian Fiete 2021-10-31 10:52:16 -07:00
parent 7f1d8803d9
commit 9f9f9b0364

View file

@ -7741,7 +7741,8 @@ bool BfModule::CheckGenericConstraints(const BfGenericParamSource& genericParamS
if (!checkMethodDef->mParams.IsEmpty()) if (!checkMethodDef->mParams.IsEmpty())
{ {
auto firstParam = checkMethodDef->mParams[0]; auto firstParam = checkMethodDef->mParams[0];
if ((firstParam->mParamDeclaration != NULL) && (firstParam->mParamDeclaration->mInitializer != NULL)) if (((firstParam->mParamKind == BfParamKind_Params) || (firstParam->mParamKind == BfParamKind_AppendIdx) || (firstParam->mParamKind == BfParamKind_VarArgs)) ||
((firstParam->mParamDeclaration != NULL) && (firstParam->mParamDeclaration->mInitializer != NULL)))
{ {
// Allow all-default params // Allow all-default params
} }