now variables can access the global scope

This commit is contained in:
Francesco Cozzuto
2021-11-30 23:34:16 +01:00
parent c6387154b0
commit cbb8ac4337
7 changed files with 72 additions and 52 deletions
+24
View File
@@ -0,0 +1,24 @@
depth = 9;
fun fail(p)
{
if p < depth:
fail(p+1, depth, fail);
else
assert(false);
}
#fail(0);
fun a()
{
fun b()
{
print(depth, '\n');
}
b();
}
a();