mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed generic constraint error crash
This commit is contained in:
parent
a8d57c5d28
commit
cb6a6484eb
1 changed files with 4 additions and 3 deletions
|
@ -6469,15 +6469,16 @@ bool BfModule::CheckGenericConstraints(const BfGenericParamSource& genericParamS
|
|||
Array<String> methodParamNameOverrides;
|
||||
auto _TypeToString = [&](BfType* type)
|
||||
{
|
||||
if (methodParamNameOverrides.IsEmpty())
|
||||
if (genericParamSource.mMethodInstance != NULL)
|
||||
{
|
||||
if (genericParamSource.mMethodInstance != NULL)
|
||||
if (methodParamNameOverrides.IsEmpty())
|
||||
{
|
||||
for (auto genericParam : genericParamSource.mMethodInstance->mMethodDef->mGenericParams)
|
||||
methodParamNameOverrides.Add(genericParam->mName);
|
||||
}
|
||||
return TypeToString(type, &methodParamNameOverrides);
|
||||
}
|
||||
return TypeToString(type, &methodParamNameOverrides);
|
||||
return TypeToString(type);
|
||||
};
|
||||
|
||||
bool ignoreErrors = mIgnoreErrors || (errorOut == NULL) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue