mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 21:34:11 +02:00
Fix enum underlying const eval on static fields
This commit is contained in:
parent
926259e121
commit
726ea4e1b6
1 changed files with 1 additions and 1 deletions
|
@ -20095,7 +20095,7 @@ BfTypedValue BfExprEvaluator::GetResult(bool clearResult, bool resolveGenericTyp
|
||||||
|
|
||||||
auto methodDef = methodInstance.mMethodInstance->mMethodDef;
|
auto methodDef = methodInstance.mMethodInstance->mMethodDef;
|
||||||
if ((methodDef->mMethodDeclaration == NULL) && (mPropTarget.mValue.IsConst()) &&
|
if ((methodDef->mMethodDeclaration == NULL) && (mPropTarget.mValue.IsConst()) &&
|
||||||
(methodDef->mName == "get__Underlying"))
|
(mPropTarget.mKind == BfTypedValueKind_Value) && (methodDef->mName == "get__Underlying"))
|
||||||
{
|
{
|
||||||
mBfEvalExprFlags = (BfEvalExprFlags)(mBfEvalExprFlags | BfEvalExprFlags_Comptime);
|
mBfEvalExprFlags = (BfEvalExprFlags)(mBfEvalExprFlags | BfEvalExprFlags_Comptime);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue