1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 15:26:00 +02:00

Improved generic inference from constraints

This commit is contained in:
Brian Fiete 2021-06-28 11:40:50 -07:00
parent 9875d3a12d
commit 1312272184
2 changed files with 7 additions and 21 deletions

View file

@ -137,15 +137,13 @@ public:
BfModule* mModule;
BfTypeVector* mCheckMethodGenericArguments;
SizedArray<BfIRValue, 4> mPrevArgValues;
int mInferredCount;
bool mIgnoreMethodGenericParam;
int mInferredCount;
public:
BfGenericInferContext()
{
mModule = NULL;
mInferredCount = 0;
mIgnoreMethodGenericParam = false;
mInferredCount = 0;
}
bool InferGenericArgument(BfMethodInstance* methodInstance, BfType* argType, BfType* wantType, BfIRValue argValue);
int GetUnresolvedCount()