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

Use undefs for generic param const type property lookups

This commit is contained in:
Brian Fiete 2021-06-19 13:26:58 -07:00
parent 74861b17a3
commit d0ee1dda7b

View file

@ -10331,6 +10331,12 @@ bool BfExprEvaluator::LookupTypeProp(BfTypeOfExpression* typeOfExpr, BfIdentifie
else
return false;
if (type->IsGenericParam())
{
if (mResult.mType != NULL)
mResult = mModule->GetDefaultTypedValue(mResult.mType, false, Beefy::BfDefaultValueKind_Undef);
}
auto autoComplete = GetAutoComplete();
if ((autoComplete != NULL) && (typeOfExpr->mTypeRef != NULL))
{