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

Fix enum underlying const eval on static fields

This commit is contained in:
Fusioon 2025-03-09 14:15:23 +01:00
parent 926259e121
commit 726ea4e1b6

View file

@ -20095,7 +20095,7 @@ BfTypedValue BfExprEvaluator::GetResult(bool clearResult, bool resolveGenericTyp
auto methodDef = methodInstance.mMethodInstance->mMethodDef;
if ((methodDef->mMethodDeclaration == NULL) && (mPropTarget.mValue.IsConst()) &&
(methodDef->mName == "get__Underlying"))
(mPropTarget.mKind == BfTypedValueKind_Value) && (methodDef->mName == "get__Underlying"))
{
mBfEvalExprFlags = (BfEvalExprFlags)(mBfEvalExprFlags | BfEvalExprFlags_Comptime);
}