mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fix for external break in mixin declaration
This commit is contained in:
parent
102cb28cb0
commit
87405f3387
2 changed files with 2 additions and 1 deletions
|
@ -16293,6 +16293,7 @@ BfScopeData* BfModule::FindScope(BfAstNode* scopeName, BfMixinState* fromMixinSt
|
||||||
|
|
||||||
if (!inMixinDecl)
|
if (!inMixinDecl)
|
||||||
Fail(StrFormat("Unable to locate label '%s'", findLabel.c_str()), scopeName);
|
Fail(StrFormat("Unable to locate label '%s'", findLabel.c_str()), scopeName);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auto scopeNode = BfNodeDynCast<BfScopeNode>(scopeName))
|
if (auto scopeNode = BfNodeDynCast<BfScopeNode>(scopeName))
|
||||||
|
|
|
@ -5608,7 +5608,7 @@ void BfModule::Visit(BfContinueStatement* continueStmt)
|
||||||
breakData = FindBreakData(continueStmt->mLabel);
|
breakData = FindBreakData(continueStmt->mLabel);
|
||||||
if ((breakData != NULL) && (!breakData->mIRContinueBlock))
|
if ((breakData != NULL) && (!breakData->mIRContinueBlock))
|
||||||
{
|
{
|
||||||
Fail(StrFormat("'continue' not applicable in '%s", continueStmt->mLabel->ToString().c_str()), continueStmt);
|
Fail(StrFormat("'continue' not applicable in '%s'", continueStmt->mLabel->ToString().c_str()), continueStmt);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue