aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests/scoping.sy
diff options
context:
space:
mode:
Diffstat (limited to 'progs/tests/scoping.sy')
-rw-r--r--progs/tests/scoping.sy13
1 files changed, 13 insertions, 0 deletions
diff --git a/progs/tests/scoping.sy b/progs/tests/scoping.sy
new file mode 100644
index 0000000..7679948
--- /dev/null
+++ b/progs/tests/scoping.sy
@@ -0,0 +1,13 @@
+a : int = 1
+{
+ a <=> 1
+ a : int = a + a
+ a <=> 2
+}
+a <=> 1
+
+{
+ a = 2
+ a : int = 1
+}
+a <=> 2