1
0

Disallow to define label from direct mode

This commit is contained in:
otya128
2016-12-04 16:37:19 +09:00
parent bd352d81f3
commit 8907277290

View File

@@ -929,6 +929,10 @@ class Compiler
break;
case NodeType.Label:
{
if (this.isDirectMode)
{
throw new CantUseFromDirectMode();
}
auto label = cast(Label)i;
if(s.func)
{