mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fixed enum '_' resolution in resolve pass
This commit is contained in:
parent
63a87cbe57
commit
9879f64b4a
1 changed files with 4 additions and 1 deletions
|
@ -3935,7 +3935,10 @@ BfTypedValue BfExprEvaluator::LookupIdentifier(BfAstNode* refNode, const StringI
|
||||||
checkTypeState = checkTypeState->mPrevState;
|
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);
|
return mModule->GetDefaultTypedValue(mModule->mCurTypeInstance);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue