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.sy24
1 files changed, 13 insertions, 11 deletions
diff --git a/progs/tests/scoping.sy b/progs/tests/scoping.sy
index f8e0b00..dfcf92c 100644
--- a/progs/tests/scoping.sy
+++ b/progs/tests/scoping.sy
@@ -1,14 +1,16 @@
-a : int = 1
-{
+start :: fn {
+ a : int = 1
+ {
+ a <=> 1
+ a : int = a + a
+ a <=> 2
+ }
a <=> 1
- a : int = a + a
- a <=> 2
-}
-a <=> 1
-{
- a = 2
- a : int = 1
- a
+ {
+ a = 2
+ a : int = 1
+ a
+ }
+ a <=> 2
}
-a <=> 2