mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-25 19:18:01 +02:00
Allow for '.' allocation of raw arrays
This commit is contained in:
parent
76dfe97d78
commit
8745b40828
1 changed files with 2 additions and 2 deletions
|
@ -11159,8 +11159,8 @@ void BfExprEvaluator::Visit(BfObjectCreateExpression* objCreateExpr)
|
||||||
if (auto dotTypeRef = BfNodeDynCast<BfDotTypeReference>(arrayTypeRef->mElementType))
|
if (auto dotTypeRef = BfNodeDynCast<BfDotTypeReference>(arrayTypeRef->mElementType))
|
||||||
{
|
{
|
||||||
if ((mExpectingType != NULL) &&
|
if ((mExpectingType != NULL) &&
|
||||||
((mExpectingType->IsArray()) || (mExpectingType->IsSizedArray())))
|
((mExpectingType->IsArray()) || (mExpectingType->IsPointer()) || (mExpectingType->IsSizedArray())))
|
||||||
unresolvedTypeRef = mExpectingType->GetUnderlyingType();
|
unresolvedTypeRef = mExpectingType->GetUnderlyingType();
|
||||||
}
|
}
|
||||||
if (unresolvedTypeRef == NULL)
|
if (unresolvedTypeRef == NULL)
|
||||||
unresolvedTypeRef = mModule->ResolveTypeRef(arrayTypeRef->mElementType);
|
unresolvedTypeRef = mModule->ResolveTypeRef(arrayTypeRef->mElementType);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue