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:
parent
74861b17a3
commit
d0ee1dda7b
1 changed files with 6 additions and 0 deletions
|
@ -10330,6 +10330,12 @@ bool BfExprEvaluator::LookupTypeProp(BfTypeOfExpression* typeOfExpr, BfIdentifie
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (type->IsGenericParam())
|
||||||
|
{
|
||||||
|
if (mResult.mType != NULL)
|
||||||
|
mResult = mModule->GetDefaultTypedValue(mResult.mType, false, Beefy::BfDefaultValueKind_Undef);
|
||||||
|
}
|
||||||
|
|
||||||
auto autoComplete = GetAutoComplete();
|
auto autoComplete = GetAutoComplete();
|
||||||
if ((autoComplete != NULL) && (typeOfExpr->mTypeRef != NULL))
|
if ((autoComplete != NULL) && (typeOfExpr->mTypeRef != NULL))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue