diff options
Diffstat (limited to 'progs/tests/auto/constants_in_inner_functions.sy')
| -rw-r--r-- | progs/tests/auto/constants_in_inner_functions.sy | 26 |
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 } |
