diff --git a/SMILEBASIC/compiler.d b/SMILEBASIC/compiler.d index 5b3d6cd..beae89e 100644 --- a/SMILEBASIC/compiler.d +++ b/SMILEBASIC/compiler.d @@ -929,6 +929,10 @@ class Compiler break; case NodeType.Label: { + if (this.isDirectMode) + { + throw new CantUseFromDirectMode(); + } auto label = cast(Label)i; if(s.func) {