mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed issues with failed const type expressions
This commit is contained in:
parent
ee4ae8f9ed
commit
ae06346357
2 changed files with 5 additions and 3 deletions
|
@ -2519,10 +2519,9 @@ BfVariant BfResolvedTypeSet::EvaluateToVariant(LookupContext* ctx, BfExpression*
|
|||
{
|
||||
BfConstResolver constResolver(ctx->mModule);
|
||||
BfVariant variant = { BfTypeCode_None };
|
||||
constResolver.Evaluate(expr);
|
||||
if (constResolver.mResult)
|
||||
auto result = constResolver.Resolve(expr);
|
||||
if (result)
|
||||
{
|
||||
auto result = constResolver.mResult;
|
||||
if (result.mKind == BfTypedValueKind_GenericConstValue)
|
||||
{
|
||||
constGenericParam = result.mType;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue