mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed 'int unknown' generic inference issue
This commit is contained in:
parent
66ab699abf
commit
20d8ae279c
2 changed files with 3 additions and 4 deletions
|
@ -320,6 +320,8 @@ bool BfGenericInferContext::InferGenericArgument(BfMethodInstance* methodInstanc
|
|||
}
|
||||
if ((*mCheckMethodGenericArguments)[wantGenericParam->mGenericParamIdx] == NULL)
|
||||
mInferredCount++;
|
||||
if ((argType != NULL) && (argType->IsIntUnknown()))
|
||||
argType = mModule->FixIntUnknown(argType);
|
||||
(*mCheckMethodGenericArguments)[wantGenericParam->mGenericParamIdx] = argType;
|
||||
if (!mPrevArgValues.IsEmpty())
|
||||
mPrevArgValues[wantGenericParam->mGenericParamIdx] = argValue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue