mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed 'ref let' case
This commit is contained in:
parent
7f31b29607
commit
c11449f9db
1 changed files with 5 additions and 5 deletions
|
@ -3021,16 +3021,16 @@ int BfResolvedTypeSet::Hash(BfTypeReference* typeRef, LookupContext* ctx, BfHash
|
|||
else if (auto varType = BfNodeDynCastExact<BfVarTypeReference>(typeRef))
|
||||
{
|
||||
// Don't allow 'var'
|
||||
//*failed = true;
|
||||
auto primType = ctx->mModule->GetPrimitiveType(BfTypeCode_Var);
|
||||
return Hash(primType, ctx);
|
||||
ctx->mModule->Fail("Invalid use of 'var'", typeRef);
|
||||
ctx->mFailed = true;
|
||||
return 0;
|
||||
}
|
||||
else if (auto letType = BfNodeDynCastExact<BfLetTypeReference>(typeRef))
|
||||
{
|
||||
// Don't allow 'let'
|
||||
ctx->mModule->Fail("Invalid use of 'let'", typeRef);
|
||||
ctx->mFailed = true;
|
||||
auto primType = ctx->mModule->GetPrimitiveType(BfTypeCode_Let);
|
||||
return Hash(primType, ctx);
|
||||
return 0;
|
||||
}
|
||||
else if (auto retTypeTypeRef = BfNodeDynCastExact<BfModifiedTypeRef>(typeRef))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue