EP RScript 修复因跳跃导致的变量层次混乱

This commit is contained in:
2025-10-11 17:24:40 +08:00
parent f850030d10
commit bacfcd550f
8 changed files with 38 additions and 17 deletions

View File

@@ -14,8 +14,8 @@ public class Program
var result = engine.Run(@"
double i;
i = 2.0;
label(test);
{
label(test);
goto(true,func1);
goto(100>i,test);
}
@@ -24,11 +24,11 @@ result = i;
goto(true,end);
label(func1);
{
label(func1);
i = Pow(i,2.0);
back(true);
}
back(true);
label(end);
", import);