mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed break targeting switch label
This commit is contained in:
parent
ac67046afc
commit
908a76b92a
3 changed files with 25 additions and 1 deletions
|
@ -1942,7 +1942,7 @@ void BfModule::NewScopeState(bool createLexicalBlock, bool flushValueScope)
|
|||
{
|
||||
if (checkScope->mLabel == mCurMethodState->mCurScope->mLabel)
|
||||
{
|
||||
auto errorNode = Fail("Duplicate scope label", curScope->mLabelNode);
|
||||
auto errorNode = Warn(0, StrFormat("Duplicate scope label '%s'", checkScope->mLabel.c_str()), curScope->mLabelNode);
|
||||
if (errorNode != NULL)
|
||||
mCompiler->mPassInstance->MoreInfo("See previous scope label", checkScope->mLabelNode);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue