1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed global var '.Underlying' property

This commit is contained in:
Brian Fiete 2025-03-11 13:35:56 -04:00
parent a7e927db82
commit ba558394f1

View file

@ -20094,7 +20094,7 @@ BfTypedValue BfExprEvaluator::GetResult(bool clearResult, bool resolveGenericTyp
auto callFlags = mPropDefBypassVirtual ? BfCreateCallFlags_BypassVirtual : BfCreateCallFlags_None; auto callFlags = mPropDefBypassVirtual ? BfCreateCallFlags_BypassVirtual : BfCreateCallFlags_None;
auto methodDef = methodInstance.mMethodInstance->mMethodDef; auto methodDef = methodInstance.mMethodInstance->mMethodDef;
if ((methodDef->mMethodDeclaration == NULL) && (mPropTarget.mValue.IsConst()) && if ((methodDef->mMethodDeclaration == NULL) && (mModule->mBfIRBuilder->IsConstValue(mPropTarget.mValue)) &&
(methodDef->mName == "get__Underlying")) (methodDef->mName == "get__Underlying"))
{ {
mBfEvalExprFlags = (BfEvalExprFlags)(mBfEvalExprFlags | BfEvalExprFlags_Comptime); mBfEvalExprFlags = (BfEvalExprFlags)(mBfEvalExprFlags | BfEvalExprFlags_Comptime);