1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed errors with null param typeref

This commit is contained in:
Brian Fiete 2022-03-19 07:35:28 -07:00
parent 332bebe4ff
commit 323e69bbd6
2 changed files with 5 additions and 4 deletions

View file

@ -23120,12 +23120,12 @@ void BfModule::DoMethodDeclaration(BfMethodDeclaration* methodDeclaration, bool
if (closureCaptureEntry != NULL)
resolvedParamType = closureCaptureEntry->mType;
else if (paramDef->mTypeRef->IsA<BfLetTypeReference>())
else if ((paramDef->mTypeRef != NULL) && (paramDef->mTypeRef->IsA<BfLetTypeReference>()))
{
Fail("Cannot declare 'let' parameters", paramDef->mTypeRef);
resolvedParamType = mContext->mBfObjectType;
}
else if (paramDef->mTypeRef->IsA<BfVarTypeReference>())
else if ((paramDef->mTypeRef != NULL) && (paramDef->mTypeRef->IsA<BfVarTypeReference>()))
{
if (methodDef->mMethodType != BfMethodType_Mixin)
{