summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc6
1 files changed, 5 insertions, 1 deletions
diff --git a/test.toc b/test.toc
index 9f27d1c..d596c68 100644
--- a/test.toc
+++ b/test.toc
@@ -5,6 +5,10 @@ main ::= fn() {
}
foo ::= fn(x: int) int {
- return 3*x;
+ if x == 3 {
+ return 7;
+ } else {
+ return 3*x;
+ }
}