mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Reworked ref enumerators to support non-pointer refs
This commit is contained in:
parent
70d32885b1
commit
d5073e810c
10 changed files with 82 additions and 24 deletions
|
@ -12150,7 +12150,7 @@ BfModuleMethodInstance BfExprEvaluator::GetSelectedMethod(BfAstNode* targetSrc,
|
|||
if ((invocationExpr != NULL) && (invocationExpr->mGenericArgs != NULL))
|
||||
{
|
||||
errorNode = invocationExpr->mGenericArgs->mGenericArgs[(int)methodDef->mGenericParams.size()];
|
||||
if (errorNode == NULL)
|
||||
if ((errorNode == NULL) && (!invocationExpr->mGenericArgs->mCommas.IsEmpty()))
|
||||
errorNode = invocationExpr->mGenericArgs->mCommas[(int)methodDef->mGenericParams.size() - 1];
|
||||
}
|
||||
mModule->Fail(StrFormat("Too many generic arguments, expected %d fewer", genericArgCountDiff), errorNode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue