mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +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,11 +68,11 @@ BfTypedValue BfConstResolver::Resolve(BfExpression* expr, BfType* wantType, BfCo
|
|||
}
|
||||
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
|
||||
arraySize = (int)invocationExpr->mArguments.size();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue