summaryrefslogtreecommitdiff
path: root/test.lang
diff options
context:
space:
mode:
Diffstat (limited to 'test.lang')
-rw-r--r--test.lang8
1 files changed, 5 insertions, 3 deletions
diff --git a/test.lang b/test.lang
index 1f33175..24a931d 100644
--- a/test.lang
+++ b/test.lang
@@ -1,6 +1,8 @@
-proc main(a, b i64) {
+func main(a, b i64) i64 {
if a = b {
- b := 3
+ let t = a
+ a := b
+ b := t
}
- return a
+ return a + b
}