mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed type alias hash crash
This commit is contained in:
parent
3d191b6cc5
commit
f251b6e58e
1 changed files with 5 additions and 0 deletions
|
@ -2563,6 +2563,11 @@ int BfResolvedTypeSet::Hash(BfTypeReference* typeRef, LookupContext* ctx, BfHash
|
|||
if ((resolvedType != NULL) && (resolvedType->IsTypeAlias()))
|
||||
{
|
||||
auto underlyingType = resolvedType->GetUnderlyingType();
|
||||
if (underlyingType == NULL)
|
||||
{
|
||||
ctx->mFailed = true;
|
||||
return 0;
|
||||
}
|
||||
return Hash(underlyingType, ctx, flags);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue