mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed a crash attempting a method call in a const eval
This commit is contained in:
parent
0e7b7e34a7
commit
3a261c5dfa
1 changed files with 3 additions and 1 deletions
|
@ -12189,7 +12189,9 @@ BfModuleMethodInstance BfExprEvaluator::GetSelectedMethod(BfAstNode* targetSrc,
|
||||||
auto resolvedCurTypeInst = curTypeInst;//mModule->ResolveGenericType(curTypeInst)->ToTypeInstance();
|
auto resolvedCurTypeInst = curTypeInst;//mModule->ResolveGenericType(curTypeInst)->ToTypeInstance();
|
||||||
bool hasDifferentResolvedTypes = resolvedCurTypeInst != curTypeInst;
|
bool hasDifferentResolvedTypes = resolvedCurTypeInst != curTypeInst;
|
||||||
BfTypeVector resolvedGenericArguments;
|
BfTypeVector resolvedGenericArguments;
|
||||||
auto rootMethodState = mModule->mCurMethodState->GetRootMethodState();
|
BfMethodState* rootMethodState = NULL;
|
||||||
|
if (mModule->mCurMethodState != NULL)
|
||||||
|
rootMethodState = mModule->mCurMethodState->GetRootMethodState();
|
||||||
|
|
||||||
int localInferrableGenericArgCount = -1;
|
int localInferrableGenericArgCount = -1;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue