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:
parent
332bebe4ff
commit
323e69bbd6
2 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue