mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
Fixed size array inference
This commit is contained in:
parent
960ec51842
commit
e23aac35ef
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ BfTypedValue BfConstResolver::Resolve(BfExpression* expr, BfType* wantType, BfCo
|
||||||
}
|
}
|
||||||
else if (auto indexerExpr = BfNodeDynCast<BfIndexerExpression>(invocationExpr->mTarget))
|
else if (auto indexerExpr = BfNodeDynCast<BfIndexerExpression>(invocationExpr->mTarget))
|
||||||
{
|
{
|
||||||
if (auto target = BfNodeDynCast<BfDotTypeReference>(indexerExpr->mTarget))
|
if (indexerExpr->mArguments.size() == 0)
|
||||||
{
|
{
|
||||||
// Inferred-type sized array initializer
|
// Inferred-type sized array initializer
|
||||||
arraySize = (int)invocationExpr->mArguments.size();
|
arraySize = (int)invocationExpr->mArguments.size();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue