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

Fixed alloctype(T) where T : var field lookups

This commit is contained in:
Brian Fiete 2025-03-22 07:45:43 -04:00
parent 1a4f0b1b4a
commit f10365c1ad

View file

@ -11282,6 +11282,12 @@ void BfExprEvaluator::LookupQualifiedName(BfQualifiedNameNode* nameNode, bool ig
else
mResult.mKind = BfTypedValueKind_Addr;
}
else if (mResult.mType->IsAllocType())
{
BF_ASSERT(mResult.mValue.IsFake());
mResult.mType = mResult.mType->GetUnderlyingType();
}
mIsVolatileReference = false;
mIsHeapReference = false;