aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests/auto/constants_in_inner_functions.sy
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-03-07 17:47:08 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-03-07 23:17:37 +0100
commit3974ce7c4f0623cef3fcf0abf95d8be6a54d3b44 (patch)
tree2d0c3ff5b222f9508f12ee9d48cd584934dd1882 /progs/tests/auto/constants_in_inner_functions.sy
parent09c830296fdb55efbc7f590337ce72f5ec75c04b (diff)
downloadsylt-3974ce7c4f0623cef3fcf0abf95d8be6a54d3b44.tar.gz
auto indent the tests
Diffstat (limited to 'progs/tests/auto/constants_in_inner_functions.sy')
-rw-r--r--progs/tests/auto/constants_in_inner_functions.sy26
1 files changed, 13 insertions, 13 deletions
diff --git a/progs/tests/auto/constants_in_inner_functions.sy b/progs/tests/auto/constants_in_inner_functions.sy
index 3371393..99704e7 100644
--- a/progs/tests/auto/constants_in_inner_functions.sy
+++ b/progs/tests/auto/constants_in_inner_functions.sy
@@ -1,20 +1,20 @@
start :: fn {
-q : int = 0
+ q : int = 0
-f :: fn -> fn -> {
- g :: fn {
- q += 1
+ f :: fn -> fn -> {
+ g :: fn {
+ q += 1
+ }
+ ret g
}
- ret g
-}
-g := f()
-g()
-q <=> 1
-g()
-q <=> 2
-g()
-q <=> 3
+ g := f()
+ g()
+ q <=> 1
+ g()
+ q <=> 2
+ g()
+ q <=> 3
}