mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Use undefs for generic param const type property lookups
This commit is contained in:
parent
74861b17a3
commit
d0ee1dda7b
1 changed files with 6 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue