mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed default ctor detection
This commit is contained in:
parent
7f1d8803d9
commit
9f9f9b0364
1 changed files with 6 additions and 5 deletions
|
@ -7741,7 +7741,8 @@ bool BfModule::CheckGenericConstraints(const BfGenericParamSource& genericParamS
|
|||
if (!checkMethodDef->mParams.IsEmpty())
|
||||
{
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue