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

Fixed enum result classify issue

This commit is contained in:
Brian Fiete 2022-01-06 11:56:12 -05:00
parent 4b1d7047d1
commit 6a158db9da
4 changed files with 11 additions and 5 deletions

View file

@ -8560,9 +8560,7 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
if (enumResult)
{
if ((mModule->mCompiler->mResolvePassData != NULL) &&
(targetSrc->IsFromParser(mModule->mCompiler->mResolvePassData->mParser)) &&
(mModule->mCompiler->mResolvePassData->mSourceClassifier != NULL))
if (mModule->mCompiler->WantsClassifyNode(targetSrc))
{
mModule->mCompiler->mResolvePassData->mSourceClassifier->SetElementType(targetSrc, BfSourceElementType_Normal);
}