mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Disallowed certain operations in deferred blocks (ie: returns/breaks)
This commit is contained in:
parent
59b807fa15
commit
9309297295
4 changed files with 121 additions and 29 deletions
|
@ -11174,7 +11174,7 @@ BfAllocTarget BfExprEvaluator::ResolveAllocTarget(BfAstNode* allocNode, BfTokenN
|
|||
if (auto scopeNode = BfNodeDynCast<BfScopeNode>(allocNode))
|
||||
{
|
||||
newToken = scopeNode->mScopeToken;
|
||||
allocTarget.mScopeData = mModule->FindScope(scopeNode->mTargetNode);
|
||||
allocTarget.mScopeData = mModule->FindScope(scopeNode->mTargetNode, true);
|
||||
|
||||
if (autoComplete != NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue