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