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

Fixed enum '_' resolution in resolve pass

This commit is contained in:
Brian Fiete 2021-10-04 09:41:17 -07:00
parent 63a87cbe57
commit 9879f64b4a

View file

@ -3935,7 +3935,10 @@ BfTypedValue BfExprEvaluator::LookupIdentifier(BfAstNode* refNode, const StringI
checkTypeState = checkTypeState->mPrevState;
}
if ((resolvingFieldDef != NULL) && (mModule->mCompiler->mResolvePassData != NULL) && (mModule->mCompiler->mResolvePassData->mParser == resolvingFieldDef->mFieldDeclaration->GetParser()))
if ((resolvingFieldDef != NULL) &&
(mModule->mCompiler->mResolvePassData != NULL) &&
(mModule->mCompiler->mResolvePassData->mParser == resolvingFieldDef->mFieldDeclaration->GetParser()) &&
(GetAutoComplete() != NULL))
{
return mModule->GetDefaultTypedValue(mModule->mCurTypeInstance);
}