mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed stack overflow with ref member
This commit is contained in:
parent
e06949dac1
commit
2d77d73e8d
1 changed files with 1 additions and 1 deletions
|
@ -8677,7 +8677,7 @@ BfType* BfModule::ResolveTypeRef(BfTypeReference* typeRef, BfPopulateType popula
|
|||
{
|
||||
const char* refTypeStr = BfTokenToString(refTypeRef->mRefToken->mToken);
|
||||
Fail(StrFormat("Invalid use of '%s'. Only method parameters, return types, and local variables can be declared as %s types", refTypeStr, refTypeStr), refTypeRef->mRefToken);
|
||||
return ResolveTypeRef(refTypeRef->mElementType);
|
||||
return ResolveTypeRef(refTypeRef->mElementType, populateType, resolveFlags, numGenericArgs);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue