1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed a crash attempting a method call in a const eval

This commit is contained in:
Brian Fiete 2020-04-26 10:27:55 -07:00
parent 0e7b7e34a7
commit 3a261c5dfa

View file

@ -12189,7 +12189,9 @@ BfModuleMethodInstance BfExprEvaluator::GetSelectedMethod(BfAstNode* targetSrc,
auto resolvedCurTypeInst = curTypeInst;//mModule->ResolveGenericType(curTypeInst)->ToTypeInstance();
bool hasDifferentResolvedTypes = resolvedCurTypeInst != curTypeInst;
BfTypeVector resolvedGenericArguments;
auto rootMethodState = mModule->mCurMethodState->GetRootMethodState();
BfMethodState* rootMethodState = NULL;
if (mModule->mCurMethodState != NULL)
rootMethodState = mModule->mCurMethodState->GetRootMethodState();
int localInferrableGenericArgCount = -1;