Disallow to define label from direct mode
This commit is contained in:
@@ -929,6 +929,10 @@ class Compiler
|
||||
break;
|
||||
case NodeType.Label:
|
||||
{
|
||||
if (this.isDirectMode)
|
||||
{
|
||||
throw new CantUseFromDirectMode();
|
||||
}
|
||||
auto label = cast(Label)i;
|
||||
if(s.func)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user