mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed method selection reification
This commit is contained in:
parent
80d9b11166
commit
2384b7edfc
1 changed files with 3 additions and 6 deletions
|
@ -9107,6 +9107,9 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
|
|||
lookupTypeInst = NULL;
|
||||
}
|
||||
|
||||
if ((mModule->mIsReified) && (targetTypeInst != NULL) && (!targetTypeInst->mIsReified) && (!targetTypeInst->mModule->mReifyQueued))
|
||||
mModule->PopulateType(targetTypeInst);
|
||||
|
||||
BfMethodDef* methodDef = NULL;
|
||||
BfTypeVector checkMethodGenericArguments;
|
||||
|
||||
|
@ -15927,12 +15930,6 @@ BfModuleMethodInstance BfExprEvaluator::GetSelectedMethod(BfAstNode* targetSrc,
|
|||
{
|
||||
bool failed = false;
|
||||
|
||||
if ((mModule->mIsReified) && (!curTypeInst->mIsReified))
|
||||
{
|
||||
// Make sure target type gets reified
|
||||
mModule->PopulateType(curTypeInst);
|
||||
}
|
||||
|
||||
BfTypeVector resolvedGenericArguments;
|
||||
BfMethodState* rootMethodState = NULL;
|
||||
if (mModule->mCurMethodState != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue