mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
PopulateType fix for IsZeroGap check in MatchConstructor
This commit is contained in:
parent
3a67152e78
commit
b010449c22
1 changed files with 3 additions and 0 deletions
|
@ -9063,7 +9063,10 @@ BfTypedValue BfExprEvaluator::MatchConstructor(BfAstNode* targetSrc, BfMethodBou
|
||||||
auto origAllowAppendKind = allowAppendKind;
|
auto origAllowAppendKind = allowAppendKind;
|
||||||
|
|
||||||
if (allowAppendKind == BfAllowAppendKind_Infer)
|
if (allowAppendKind == BfAllowAppendKind_Infer)
|
||||||
|
{
|
||||||
|
mModule->PopulateType(targetType);
|
||||||
allowAppendKind = targetType->IsZeroGap() ? BfAllowAppendKind_ZeroGap : BfAllowAppendKind_Yes;
|
allowAppendKind = targetType->IsZeroGap() ? BfAllowAppendKind_ZeroGap : BfAllowAppendKind_Yes;
|
||||||
|
}
|
||||||
|
|
||||||
static int sCtorCount = 0;
|
static int sCtorCount = 0;
|
||||||
sCtorCount++;
|
sCtorCount++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue