summaryrefslogtreecommitdiff
path: root/tests/defer.toc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/defer.toc')
-rw-r--r--tests/defer.toc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/defer.toc b/tests/defer.toc
index 07ef9f7..e1262f0 100644
--- a/tests/defer.toc
+++ b/tests/defer.toc
@@ -7,14 +7,14 @@ plusone ::= fn(n : int) x := n {
same ::= fn(n : int) int {
x := n;
defer x += 1;
- x
+ return x;
}
thing1 ::= fn() (int, int) {
x := 5;
y := 6;
defer x += 1;
- x, y
+ return x, y;
}
thing2 ::= fn() x := 5, y := 6 {