mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-22 01:37:59 +02:00
Fixed issue with untargeted scope allocations in initializer blocks
This commit is contained in:
parent
be3f688576
commit
5d694cc3c4
1 changed files with 1 additions and 0 deletions
|
@ -11740,6 +11740,7 @@ void BfExprEvaluator::Visit(BfInitializerExpression* initExpr)
|
|||
if (initExpr->mInlineTypeRef != NULL)
|
||||
mModule->mCurMethodState->mPrivateTypeInstance = initValue.mType->ToTypeInstance();
|
||||
|
||||
newScope.mAllowTargeting = false;
|
||||
newScope.mInnerIsConditional = true;
|
||||
newScope.mCloseNode = initExpr->mCloseBrace;
|
||||
mModule->mCurMethodState->AddScope(&newScope);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue