mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-24 18:48: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 ((mExpectingType != NULL) &&
|
||||
((mExpectingType->IsArray()) || (mExpectingType->IsSizedArray())))
|
||||
unresolvedTypeRef = mExpectingType->GetUnderlyingType();
|
||||
((mExpectingType->IsArray()) || (mExpectingType->IsPointer()) || (mExpectingType->IsSizedArray())))
|
||||
unresolvedTypeRef = mExpectingType->GetUnderlyingType();
|
||||
}
|
||||
if (unresolvedTypeRef == NULL)
|
||||
unresolvedTypeRef = mModule->ResolveTypeRef(arrayTypeRef->mElementType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue